mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-24 23:35:30 +08:00
docs: added info on usage to the docs
Signed-off-by: Lukas Frey <mail@lukasfrey.cz>
This commit is contained in:
@@ -18,6 +18,22 @@ Select::make('status')
|
||||
])
|
||||
```
|
||||
|
||||
You can optionally also add groups by adding an array instead of a label in the options:
|
||||
|
||||
```php
|
||||
use Filament\Forms\Components\Select;
|
||||
|
||||
Select::make('status')
|
||||
->options([
|
||||
'In Process' => [
|
||||
'draft' => 'Draft',
|
||||
'reviewing' => 'Reviewing',
|
||||
],
|
||||
'published' => 'Published',
|
||||
])
|
||||
```
|
||||
|
||||
|
||||
<AutoScreenshot name="forms/fields/select/simple" alt="Select" version="3.x" />
|
||||
|
||||
## Searching options
|
||||
|
||||
Reference in New Issue
Block a user