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:
Jan-Willem de Boer
2023-07-28 13:28:36 +02:00
parent e5717e4382
commit 8d2518baa9
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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)
```