View Source ExTeal.Fields.MultiSelect (ExTeal v0.27.0)
The MultiSelect
field may be used to generate a drop-down menu with multiple fields.
The select menu's options may be defined using the MultiSelect/with_options/2
function:
MultiSelect.make(:regions)
|> MultiSelect.with_options([%{value: 1, label: "USA"}, %{value: 2, label: "EU"}])
You can also return a list of maps with value
, title
, subtitle
and thumbnail
keys
to use 'card' style taggables, useful when the multiselect represents a relationship.
Summary
Functions
Callback implementation for ExTeal.Field.apply_options_for/4
.
Callback implementation for ExTeal.Field.default_sortable/0
.
Callback implementation for ExTeal.Field.filterable_as/0
.
Callback implementation for ExTeal.Field.make/2
.
Callback implementation for ExTeal.Field.sanitize_as/0
.
Callback implementation for ExTeal.Field.value_for/3
.
Types
Functions
Callback implementation for ExTeal.Field.apply_options_for/4
.
Callback implementation for ExTeal.Field.default_sortable/0
.
Callback implementation for ExTeal.Field.filterable_as/0
.
Callback implementation for ExTeal.Field.make/2
.
Callback implementation for ExTeal.Field.sanitize_as/0
.
Callback implementation for ExTeal.Field.value_for/3
.
@spec with_options(ExTeal.Field.t(), valid_options() | (() -> valid_options())) :: ExTeal.Field.t()