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_icon

A trait for unicode strings.

app_title

A trait for unicode strings.

current_step

An int trait.

dialog_fullscreen

A boolean (True, False) trait.

dialog_width

An int trait.

docs_url

A trait for unicode strings.

drawer_width

Current drawer pixel width (collapsed or expanded).

initial_step

An int trait.

is_pinned

A boolean (True, False) trait.

language_selector

An instance of a Python list.

main_map

An instance of a Python list.

repo_url

A trait for unicode strings.

right_panel

An instance of a Python list.

right_panel_config

An instance of a Python dict.

right_panel_content

An instance of a Python list.

right_panel_open

A boolean (True, False) trait.

right_panel_width

An int trait.

step_open

A boolean (True, False) trait.

steps_data

An instance of a Python list.

template_file

A trait for unicode strings.

theme_toggle

An instance of a Python list.

window_height

Browser window size, pushed from Vue on mount and resize.

window_width

An int trait.

Methods

__init__

Instantiate the MapApp class.

set_model

Set or change the bound model.

unlink_model

Remove all model links and cleanup.

vue_handle_right_panel_action

Handle right panel actions from step activation.

vue_handle_step_activation

Handle step activation from Vue component.

vue_handle_step_change

Handle step activation/deactivation from Vue component.

vue_handle_step_deactivation

Handle step deactivation from Vue component.

vue_set_drawer_width

Receive the real drawer pixel width from Vue on mount/mini-toggle.

vue_set_window_size

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

Remove all model links and cleanup.

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

MapApp.vue_handle_step_deactivation(*args)[source]#

Handle step deactivation from Vue component.

MapApp.vue_set_drawer_width(width)[source]#

Receive the real drawer pixel width from Vue on mount/mini-toggle.

MapApp.vue_set_window_size(size)[source]#

Receive the real browser window size from Vue on mount/resize.