From ae1377232e585a60b78b6cd06e7889ee816f8ca3 Mon Sep 17 00:00:00 2001 From: Xavier Foucrier Date: Wed, 9 Aug 2023 01:09:57 +0200 Subject: [PATCH] Review documentation for `hooks` trigger event See https://github.com/barbajs/barba/issues/622. --- source/docs/advanced/hooks/index.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/source/docs/advanced/hooks/index.md b/source/docs/advanced/hooks/index.md index bc461039..1b102ea5 100644 --- a/source/docs/advanced/hooks/index.md +++ b/source/docs/advanced/hooks/index.md @@ -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