Button Card
Card type:
button
Data type of variable:
bool

The button card provides a clickable button that toggles between True
and False
states. Each click will toggle the value of the connected DataCards variable.
In addition to the common parameters and the input card parameters, the button card has the following configuration options:
Name | Type | Required | Description |
---|---|---|---|
text | str | No | The text to display on the button. Default: “Click me” |
label | str | No | The label displayed in the card header. Default: “Button” |
Examples
Basic button card
A simple button that toggles between True and False.
datacards.publish.card(
type='button',
label='Button',
text='Click me',
logic_view_size=(2,1),
variable_key='my_variable_key'
)

Last updated on