Skip to content

Commit

Permalink
Update vizro-core/docs/pages/user-guides/custom-components.md
Browse files Browse the repository at this point in the history
Co-authored-by: Jo Stichbury <[email protected]>
  • Loading branch information
lingyielia and stichbury authored Feb 24, 2025
1 parent 0aa13eb commit 62bebd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vizro-core/docs/pages/user-guides/custom-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ Add the custom action `open_offcanvas` as a `function` argument inside the [`Act

### Trigger actions with a custom component

As mentioned above, custom components can trigger action. To enable the custom component to trigger the action, we need to add the `actions` field and specify which property triggers the actions:
As mentioned above, custom components can trigger actions. To enable the custom component to trigger the action, add the `actions` field and specify which property triggers the actions:

1. **Add the `actions` argument to your custom component**. The type of the `actions` argument is `list[Action]`.
2. **Set the action through `_action_validator_factory`**. In doing so, any change in the `"active_index"` property of the custom component triggers the action.
Expand Down

0 comments on commit 62bebd9

Please sign in to comment.