pysepal.sepalwidgets.vue_app.MapApp#
- class pysepal.sepalwidgets.vue_app.MapApp(*args, **kwargs)[source]#
Instantiate the MapApp class.
- Parameters:
theme_toggle (ThemeToggle, optional) – Theme toggle widget
initial_step (int, optional) – Initial step to display
model (HasTraits, optional) – Model to bind with. If provided, will automatically link matching traitlets
**kwargs – Additional parameters
theme_state (ThemeState | None)
Attributes
app_iconA trait for unicode strings.
app_titleA trait for unicode strings.
current_stepAn int trait.
dialog_fullscreenA boolean (True, False) trait.
dialog_widthAn int trait.
docs_urlA trait for unicode strings.
drawer_widthCurrent drawer pixel width (collapsed or expanded).
initial_stepAn int trait.
is_pinnedA boolean (True, False) trait.
language_selectorAn instance of a Python list.
main_mapAn instance of a Python list.
repo_urlA trait for unicode strings.
right_panelAn instance of a Python list.
right_panel_configAn instance of a Python dict.
right_panel_contentAn instance of a Python list.
right_panel_openA boolean (True, False) trait.
right_panel_widthAn int trait.
step_openA boolean (True, False) trait.
steps_dataAn instance of a Python list.
template_fileA trait for unicode strings.
theme_toggleAn instance of a Python list.
window_heightBrowser window size, pushed from Vue on mount and resize.
window_widthAn int trait.
Methods
Instantiate the MapApp class.
Set or change the bound model.
Remove all model links and cleanup.
Handle right panel actions from step activation.
Handle step activation from Vue component.
Handle step activation/deactivation from Vue component.
Handle step deactivation from Vue component.
Receive the real drawer pixel width from Vue on mount/mini-toggle.
Receive the real browser window size from Vue on mount/resize.
- MapApp.__init__(theme_toggle=None, theme_state=None, initial_step=None, model=None, **kwargs)[source]#
Instantiate the MapApp class.
- Parameters:
theme_toggle (ThemeToggle, optional) – Theme toggle widget
initial_step (int, optional) – Initial step to display
model (HasTraits, optional) – Model to bind with. If provided, will automatically link matching traitlets
**kwargs – Additional parameters
theme_state (ThemeState | None)
- MapApp.set_model(model)[source]#
Set or change the bound model.
- Parameters:
model (HasTraits) – New model to bind with
- MapApp.vue_handle_right_panel_action(action)[source]#
Handle right panel actions from step activation.
- MapApp.vue_handle_step_activation(step_id)[source]#
Handle step activation from Vue component.
- Parameters:
step_id (int) – The ID of the step being activated
- MapApp.vue_handle_step_change(step_id, is_open)[source]#
Handle step activation/deactivation from Vue component.
- Parameters:
step_id (int) – The ID of the step being changed
is_open (bool) – Whether the step is being opened or closed