mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-24 23:35:30 +08:00
Since the ->disablePlaceHolder() method is deprecated and its suggested to use ->selectablePlaceholder(false) the docs should be updated to reflect this.
This commit is contained in:
@@ -318,7 +318,7 @@ Be aware that you will need to ensure that the HTML is safe to render, otherwise
|
||||
|
||||
## Disable placeholder selection
|
||||
|
||||
You can prevent the placeholder (null option) from being selected using the `disablePlaceholderSelection()` method:
|
||||
You can prevent the placeholder (null option) from being selected using the `selectablePlaceholder()` method:
|
||||
|
||||
```php
|
||||
use Filament\Forms\Components\Select;
|
||||
@@ -330,7 +330,7 @@ Select::make('status')
|
||||
'published' => 'Published',
|
||||
])
|
||||
->default('draft')
|
||||
->disablePlaceholderSelection()
|
||||
->selectablePlaceholder(false)
|
||||
```
|
||||
|
||||
## Disabling specific options
|
||||
|
||||
@@ -40,7 +40,7 @@ SelectColumn::make('status')
|
||||
|
||||
## Disabling placeholder selection
|
||||
|
||||
You can prevent the placeholder from being selected using the `disablePlaceholderSelection()` method:
|
||||
You can prevent the placeholder from being selected using the `selectablePlaceholder()` method:
|
||||
|
||||
```php
|
||||
use Filament\Tables\Columns\SelectColumn;
|
||||
@@ -51,5 +51,5 @@ SelectColumn::make('status')
|
||||
'reviewing' => 'Reviewing',
|
||||
'published' => 'Published',
|
||||
])
|
||||
->disablePlaceholderSelection()
|
||||
->selectablePlaceholder(false)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user