Formulários v1.0.0

Seleção múltipla

Lista suspensa com busca que permite selecionar múltiplos valores, exibidos como tags/chips removíveis no campo. Suporta agrupamento de opções, máximo de seleções, filtragem por busca e ações de selecionar tudo/limpar tudo.

Pré-visualização e Código

Opções

Nome Tipo Padrão Descrição
options * Array obrigatório 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

Changelog v1.0.0

- v1.0.0: Initial release

Obter Acesso Completo

Desbloqueie o código-fonte deste componente e de todos os outros. Pagamento único para acesso vitalício.

Obter Acesso Agora