Skip to Content
DataCards 2.2.4 is released 🎉

Button Card

Card type: button

Data type of variable: bool

Button card

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:

NameTypeRequiredDescription
textstrNoThe text to display on the button. Default: “Click me”
labelstrNoThe 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' )
Button card
Last updated on