-
-
Notifications
You must be signed in to change notification settings - Fork 86
Select Option Group
tanthammar edited this page Apr 8, 2021
·
4 revisions

Please 💗 sponsor this package 🔗 in order to get access to this field. The documentation is available in the sponsor repository.
The $options are typically an Eloquent->groupBy() query, callable(), Collection or Array
that returns the following structure
$options = [
'Swedish Cars' => [1 => 'Volvo', 2 => 'Saab'],
'German Cars' => [3 => 'Mercedes', 4 => 'Audi']
];
SelectOptGroup::make('Select Option Group')
->options($options) //Callable, Collection or Array
->placeholder('Please select an option')
->default(3)
->fieldWidth('w-full sm:max-w-sm')
->wire('wire:model.defer')// if you don't want a network request on every click in the select
->rules(['nullable', Rule::in([1,2,3,4])]);- Installation
- Requirements
- v5 Upgrade Guide
- v6 Upgrade Guide
- v7 Upgrade Guide
- Support
- Quickstart
- Manual installation
- Optional
- Form component
- Field
- Field types
- Example Form
- Blade Components
- Notifications