Skip to content

Commit

Permalink
Review documentation for hooks trigger event
Browse files Browse the repository at this point in the history
See #622.
  • Loading branch information
xavierfoucrier committed Aug 8, 2023
1 parent 248e5c4 commit ae13772
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions source/docs/advanced/hooks/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,14 @@ barba.init({

Properties attached to `data` object:

| Property | Type | Description |
| ------------------------------------------ | ------------------------------ | ---------------------------------- |
| [`data.current`](#current-next-properties) | Object | Current page related |
| [`data.next`](#current-next-properties) | Object | Next page related |
| `data.trigger` | HTMLElement | Link that triggered the transition |
| | String `'barba'` | Programmatic navigation |
| | String `'back'` \| `'forward'` | Browser backward/forward button |
| Property | Type | Description |
| ------------------------------------------ | ------------------------------ | ----------------------------------- |
| [`data.current`](#current-next-properties) | Object | Current page related |
| [`data.next`](#current-next-properties) | Object | Next page related |
| `data.trigger` | HTMLElement | Link that triggered the transition |
| | String `'barba'` | Programmatic navigation |
| | String `'back'` \| `'forward'` | Browser backward/forward button |
| `data.event` | LinkEvent \| PopStateEvent | Event that triggered the transition |

#### `current/next` properties

Expand Down

0 comments on commit ae13772

Please sign in to comment.