Select & Multiselect

Methods

->options($options)

  • A list or flat key => value based Array, Collection or Closure.

  • OBSERVE: if you use a callable, it will be executed on EVERY re-render of the component! Maybe you should consider setting the $options in mount() 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