pysepal.sepalwidgets.vue_app.ThemeToggle#
- class pysepal.sepalwidgets.vue_app.ThemeToggle(*args, **kwargs)[source]#
Initialize the toggle, optionally bound to a shared ThemeState.
Attributes
auto_iconA trait for unicode strings.
darkA boolean (True, False) trait.
enable_autoA boolean (True, False) trait.
off_iconA trait for unicode strings.
on_iconA trait for unicode strings.
resolved_darkA boolean (True, False) trait.
template_fileA trait for unicode strings.
Methods
Initialize the toggle, optionally bound to a shared ThemeState.
Bind the toggle widget to a shared theme state.
Return the currently bound theme state.
- Parameters:
theme_state (ThemeState | None)
- ThemeToggle.__init__(theme_state=None, **kwargs)[source]#
Initialize the toggle, optionally bound to a shared ThemeState.
- Parameters:
theme_state (ThemeState | None)
- ThemeToggle.bind_theme_state(theme_state)[source]#
Bind the toggle widget to a shared theme state.
- Parameters:
theme_state (ThemeState | None)
- Return type:
None
- ThemeToggle.get_theme_state()[source]#
Return the currently bound theme state.
- Return type:
ThemeState | None