sda.dashboard.components.forms ============================== .. py:module:: sda.dashboard.components.forms .. autoapi-nested-parse:: Forms Components. =============== Reusable form components for the dashboard. Functions --------- .. autoapisummary:: sda.dashboard.components.forms.create_filter_form Module Contents --------------- .. py:function:: 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. :param component_id: ID for the Dash component. :type component_id: :py:class:`str` :param label: Label to display for the filter. :type label: :py:class:`str` :param options: Options for dropdown or radio items. :type options: :py:class:`list`, *optional* :param value: Default value. :type value: :py:class:`any`, *optional* :param is_radio: Whether to create RadioItems. :type is_radio: :py:class:`bool`, *default* :py:obj:`False` :param is_slider: Whether to create a RangeSlider. :type is_slider: :py:class:`bool`, *default* :py:obj:`False` :param min_val: Minimum value for the slider. :type min_val: :py:class:`float`, *optional* :param max_val: Maximum value for the slider. :type max_val: :py:class:`float`, *optional* :returns: A Div containing the label and the filter component. :rtype: :py:class:`html.Div`