Cascader

Attribute Type Documentation Default Value
id :any

HTML id attribute

class :any

additional CSS classes

name :string

form field name (submits last value in path)

field %FormField{}

a form field struct retrieved from the form

options :list

tree of option maps with :value, :label, optional :children, :disabled

[]
selected_path :list

list of values forming the selected path from root to leaf

[]
placeholder :string

placeholder text

size :string

size variant

"md"
error :boolean

show error state

false
errors :list

list of error messages to display

[]
disabled :boolean

disable the component

false
loading :boolean

show loading state

false
searchable :boolean

show search input

false
clearable :boolean

show clear button

false
separator :string

path separator in display

" / "
multiple :boolean

enable multi-path selection

false
change_on_select :boolean

emit change on each level

false
expand_trigger :string

how to expand panels

"click"
helper :string

helper text displayed below the component

rest :global