Skip to content

Commit fa98e0b

Browse files
authored
fix: use preloadOptions() instead of preload() in select column docs (#20261)
1 parent dec0ce3 commit fa98e0b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/tables/docs/02-columns/06-select.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,10 @@ use Filament\Tables\Columns\SelectColumn;
218218
SelectColumn::make('author_id')
219219
->optionsRelationship(name: 'author', titleAttribute: 'name')
220220
->searchableOptions()
221-
->preload(FeatureFlag::active())
221+
->preloadOptions(FeatureFlag::active())
222222
```
223223

224-
<UtilityInjection set="tableColumns" version="4.x">As well as allowing a static value, the `preload()` method also accepts a function to dynamically calculate it. You can inject various utilities into the function as parameters.</UtilityInjection>
224+
<UtilityInjection set="tableColumns" version="4.x">As well as allowing a static value, the `preloadOptions()` method also accepts a function to dynamically calculate it. You can inject various utilities into the function as parameters.</UtilityInjection>
225225

226226
### Excluding the current record
227227

0 commit comments

Comments
 (0)