Skip to content

Commit

Permalink
Specify button as different type
Browse files Browse the repository at this point in the history
  • Loading branch information
huong-li-nguyen committed Oct 2, 2023
1 parent 5105df5 commit adc2674
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions vizro-core/docs/pages/user_guides/buttons.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# How to use buttons

To add a [`Button`][vizro.models.Button] to the control panel, you can simply insert it into the `controls` argument of the
[`Page`][vizro.models.Page].

For further details on how to use the [`Button`][vizro.models.Button], see our user guide on [Buttons](components.md#button).
For further details on how to use the [`Button`][vizro.models.Button], see our user guide on [Buttons](components.md#button).
Configuration instructions remain the same, but to add a [`Button`][vizro.models.Button] to the control panel,
simply insert it into the `controls` argument of the [`Page`][vizro.models.Page].
2 changes: 1 addition & 1 deletion vizro-core/docs/pages/user_guides/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ To enhance dashboard interactions, you can use the [`Button`][vizro.models.Butto
action functions such as e.g. exporting chart data. Please refer to the [user guide][vizro.actions] on
[`Actions`][vizro.models.Action] for currently available options.

To add a [`Button`][vizro.models.Button], simply insert it into the `components` argument of the
To add a [`Button`][vizro.models.Button] as a component, simply insert it into the `components` argument of the
[`Page`][vizro.models.Page].

You can configure the `text` argument to alter the display text of the [`Button`][vizro.models.Button] and the
Expand Down

0 comments on commit adc2674

Please sign in to comment.