shapelets.apps.DataApp.selector#

DataApp.selector(options: Optional[List[Union[int, float, str, any]]] = None, title: Optional[str] = None, placeholder: Optional[str] = None, label_by: Optional[str] = None, value_by: Optional[str] = None, default: Optional[Union[str, int, float, List[Union[int, float, str, any]]]] = None, allow_multi_selection: Optional[bool] = None, **additional) SelectorWidget#

Creates a dropdown menu for displaying multiple choices. param options: A list of items to be chosen. param title: String with the Selector title. It will be placed on top of the Selector. param placeholder: Text showed inside the Selector by default. param label_by: Selects key to use as label. param value_by: Selects key to use as value. param default: Default value. param allow_multi_selection: Allows selecting multiple values. return Selector