Select & Multiselect

Methods
->options($options)
A list or flat
key => value
basedArray
,Collection
orClosure
.OBSERVE: if you use a callable, it will be executed on EVERY re-render of the component! Maybe you should consider setting the
$options
inmount()
instead?Tip: use a component method that returns an array;
->options($this->someMethod())
->placeholder(string $placeholder)
Display a message when no item is selected.
Last updated
Was this helpful?