{{-- Read /App/Livewire/Concerns/Choices/README.md first. This will give you a resuable idea of using this component --}} @props([ 'label' => 'Select Items', 'options', // The data collection passed from the parent 'searchFunction', // The parent method to call for searching 'selectAllAction', // The parent method to call for selecting all 'clearAction', // The parent method to call for clearing 'placeholder' => 'Search...', 'noResultText' => 'No items found.' ])
whereStartsWith('wire:model') }} :options="$options" search-function="{{ $searchFunction }}" option-label="name" option-value="id" :no-result-text="$noResultText" :placeholder="$placeholder" searchable />