Skip to content

Commit 95d667c

Browse files
committed
Update UtilityInjection.astro
1 parent d1514f0 commit 95d667c

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

docs/src/components/UtilityInjection.astro

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,44 @@ let utilities = [
143143
description: 'The Eloquent record for the current schema.',
144144
},
145145
],
146+
tableColumns: [
147+
{
148+
name: 'Column',
149+
type: 'Filament\\Tables\\Columns\\Column',
150+
parameter: '$column',
151+
description: 'The current column instance.',
152+
},
153+
{
154+
name: 'Livewire',
155+
type: 'Livewire\\Component',
156+
parameter: '$livewire',
157+
description: 'The Livewire component instance.',
158+
},
159+
{
160+
name: 'Row loop',
161+
type: 'stdClass',
162+
parameter: '$rowLoop',
163+
description: 'The <a href="https://laravel.com/docs/blade#the-loop-variable" target="_blank">row loop</a> object for the current table row.',
164+
},
165+
{
166+
name: 'State',
167+
type: 'mixed',
168+
parameter: '$state',
169+
description: 'The current value of the column, based on the current table row.',
170+
},
171+
{
172+
name: 'Eloquent record',
173+
type: '?Illuminate\\Database\\Eloquent\\Model',
174+
parameter: '$record',
175+
description: 'The Eloquent record for the current table row.',
176+
},
177+
{
178+
name: 'Table',
179+
type: 'Filament\\Tables\\Table',
180+
parameter: '$table',
181+
description: 'The current table instance.',
182+
},
183+
],
146184
},
147185
}[version][set],
148186
].sort((a, b) => a.name > b.name ? 1 : -1)
@@ -154,6 +192,7 @@ const link = {
154192
formFields: `/docs/${version}/forms/overview#field-utility-injection`,
155193
infolistEntries: `/docs/${version}/infolists/overview#entry-utility-injection`,
156194
schemaComponents: `/docs/${version}/schemas/overview#component-utility-injection`,
195+
tableColumns: `/docs/${version}/tables/columns/overview#column-utility-injection`,
157196
}[set]
158197
---
159198

0 commit comments

Comments
 (0)