Formulare v1.0.0

Mehrfachauswahl

Durchsuchbares Dropdown zur Auswahl mehrerer Werte, dargestellt als entfernbare Tags/Chips in der Eingabe. Unterstützt Optionsgruppierung, maximale Auswahlanzahl, Suchfilterung und Alle-auswählen/Alle-abwählen-Aktionen.

Vorschau & Code

Optionen

Name Typ Standard Beschreibung
options * Array erforderlich Array of hashes with :label (String) and :value (String), optional :group (String)
selected Array [] Array of initially selected values
label String Label text
hint String Hint text shown below the field
placeholder String "Select options..." Placeholder when nothing selected
max_selections Integer Maximum number of selections
searchable Boolean true Enable search filtering
group_by Boolean false Group options by their :group key
empty_message String "No options found" Message shown when no options match the search
select_all Boolean false Show Select All / Clear All actions
name String Form field name (appends [] for array submission)
disabled Boolean false Disable the component
error String Error message to display

Änderungsprotokoll v1.0.0

- v1.0.0: Initial release

Vollzugang erhalten

Schalte den Quellcode für diese und alle anderen Komponenten frei. Einmalige Zahlung für lebenslangen Zugang.

Jetzt Zugang erhalten