Formulaires v1.0.0

Sélection multiple

Liste déroulante avec recherche permettant de sélectionner plusieurs valeurs, affichées sous forme de tags/chips amovibles dans le champ. Prend en charge le regroupement d'options, le nombre maximum de sélections, le filtrage par recherche et les actions tout sélectionner/tout effacer.

Aperçu et code

Options

Nom Type Par défaut Description
options * Array requis 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

Journal des modifications v1.0.0

- v1.0.0: Initial release

Obtenir l'accès complet

Débloquez le code source de ce composant et de tous les autres. Paiement unique pour un accès à vie.

Obtenir l'accès maintenant