Skip to Content
DataCards 2.2.4 is released 🎉

Toggle Card

Card type: toggle

Data type of variable: bool

Toggle card

A toggle switch that can be turned on or off. The value of the connected DataCards variable will be set to True when the toggle is on and False when it is off.

The toggle card includes the common parameters and the input card parameters.

Examples

Basic toggle card

A simple toggle switch.

datacards.publish.card( type='toggle', label='Toggle', logic_view_size=(2,1), variable_key='my_variable_key' )
Toggle card
Last updated on