Skip to content

Commit

Permalink
Update README.md (#41)
Browse files Browse the repository at this point in the history
Point out the Example Template in the Usage section.
  • Loading branch information
reedrolemodel authored Dec 31, 2024
1 parent 635a934 commit c99bcf1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ TC.start()

## Usage

Turbo's confirmation interface is exercised most commonly via `button_to` (example shown in [slim] templating syntax)
Turbo's confirmation interface is exercised most commonly via `button_to` (examples shown in [slim] templating syntax)

```ruby
= button_to 'Delete ToDo', todo_path(todo),
Expand All @@ -57,6 +57,8 @@ or `link_to` with a `data-turbo-method` attribute.
}
```

Then add markup to `app/views/layouts/application.html.slim` to render a dialog. See the [Example Template](#example-template) section below.

### Customizing more than just a message

**Turbo-Confirm** supports other custom content beyond a simple message, by setting additional data attributes on the confirmation trigger. Henceforth referred to as _contentSlots_, this feature is both infinitely configurable and completely optional. Out of the box **Turbo-Confirm** supports two:
Expand Down

0 comments on commit c99bcf1

Please sign in to comment.