Switch
Introduction
Function signature
Switch(
switched=False,
width=58,
on_text="ON",
off_text="OFF",
on_color=None,
off_color=None,
on_content=None,
off_content=None,
widget_id=None,
)
Parameters
Parameters
Type
Description
switched

width

on_text
off_text

on_color

off_color

on_content
off_content

widget_id
Methods and attributes
Attributes and Methods
Description
Mini App Example
Import libraries
Initialize Switch widget
Switch widgetInitialize OneOf widget to switch between Cards
OneOf widget to switch between CardsCreate app layout
Create app using layout

Last updated