Search

Please 💗 sponsor this package 🔗 in order to get access to this field. The documentation is available in the sponsor repository.

Methods

->options($options) - search RESULT

  • The component property that contains the search result.

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

->searchKey(string $property) - search INPUT

  • The property that is bound to the search input

->default(mixed $value)

If you set a default value, make sure it exists in the search result property.

->disabled()

The value of $searchKey will will be displayed if the field is disabled and current field value isn't available in the initial $field->options()

This is how it is implemented in the blade file:

if($field->disabled) 
value=data_get($field->options, $field->key, data_get($this, $field->searchKey))

->debounce(int $milliseconds)

  • debounce the search input

  • default = 500

->listWidth(string $class)

  • the width of the search result dropdown

  • default = null

Last updated