dropdown#

class predict_backend.page.elements.dropdown.Dropdown(options, selected=None, include_nulls_visible=True, include_nulls_value=False, multiselect=False, title='', description='', show_title=True, show_description=True, required=True, label='', placeholder='')#

Bases: InputElement

A Dropdown Input element.

Parameters:
  • options (List[str]) – The options in the dropdown menu.

  • selected (List[str]) – The option the user selected, defaults to [].

  • include_nulls_visible (bool) – Whether or not null values will be visible, defaults to True.

  • include_nulls_value (bool) – Whether or not to include null values, defaults to False.

  • multiselect (bool) – Whether or not the user can select multiple values, defaults to False.

  • title (str) – The title of the element, defaults to ‘’.

  • description (str) – The element’s description, defaults to ‘’.

  • show_title (bool) – Whether or not to show the title on the page when rendered, defaults to True.

  • show_description (bool) – Whether or not to show the description to the page when rendered, defaults to True.

  • required (bool) – Whether or not a selection needs to be submitted for the step to continue, defaults to True

  • label (str) – The label of the element, defaults to ‘’.

  • placeholder (str) – The placeholder of the element, defaults to ‘’..

update_from_input_parameters()#