main_layout module

main_layout(window_list, tab_list, variable_list=None, default_values=None)

Generates the main layout for the Dash application.

Parameters:
  • window_list (list[html.Div]) – A list of modal components to be included in the sidebar.

  • tab_list (list[html.Div | dbc.Tab]) – A list of tab objects, each containing a layout method and a label attribute.

  • variable_list (list[str] | None) – A list of variable selection components to be included in the main layout. Defaults to all existing VariableSelectorOptions.

  • default_values (dict[str, Any] | None, optional) – Default values for the variable selector. Defaults to None.

Returns:

A Dash Container component representing the app’s main layout.

Return type:

dbc.Container

Notes

  • The function includes an alert handler modal and a toggle button for the variable selector.

  • Each tab in tab_list must implement a layout() method and have a label attribute.