sda.dashboard.components.forms#

Forms Components.


Reusable form components for the dashboard.

Functions#

create_filter_form(component_id, label[, options, ...])

Create a filter component (dropdown, radio, or slider) with a label.

Module Contents#

sda.dashboard.components.forms.create_filter_form(component_id, label, options=None, value=None, is_radio=False, is_slider=False, min_val=None, max_val=None)#

Create a filter component (dropdown, radio, or slider) with a label.

Parameters:
  • component_id (str) – ID for the Dash component.

  • label (str) – Label to display for the filter.

  • options (list, optional) – Options for dropdown or radio items.

  • value (any, optional) – Default value.

  • is_radio (bool, default False) – Whether to create RadioItems.

  • is_slider (bool, default False) – Whether to create a RangeSlider.

  • min_val (float, optional) – Minimum value for the slider.

  • max_val (float, optional) – Maximum value for the slider.

Returns:

A Div containing the label and the filter component.

Return type:

html.Div