Buttons Column
How to add buttons to the rows of a table
Overview
This section explains how to enhance table data with interactive buttons linked to specific actions or data triggers. The buttons are defined per each data point, allowing for a customized and interactive data presentation.
Creating Button Columns
To integrate button columns into your table, you must define a TableButtonColumnDefinition
. This object configures the buttons and their behaviors. The definition can be applied to any table created within this framework.
Fields of TableButtonColumnDefinition
:
column_name
: The header title of the button column.label
: Descriptive text displayed on each button.models_column
(Optional): Specifies the column that contains the names of the models associated with the buttons.activities_column
(Optional): Specifies the column that contains the ids for activities triggered by the buttons.actions_column
(Optional): Specifies the column that contains the ids for actions triggered by the buttons.
Example Usage:
Below is an example to demonstrate how to add interactive buttons to a modal using shimoku_client
.
Cant use shared data set with a column of buttons, as the data has to be modified by the SDK.
Last updated