Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs-src/tutorials/02-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ event handlers a `tour` key pointing to the instance which fired the event:
- `active`
- `inactive`

For multiple events, you can use something like:

```javascript
['close', 'cancel'].forEach(event => shepherd.on(event, () => {
// some code here
}));
```

##### Current Tour

The global `Shepherd` includes a property which is always set to the currently active tour, or null if there is no active tour:
Expand Down