Skip to content

Commit 8bfecc5

Browse files
committed
Update UtilityInjection.astro
1 parent 17e2bf5 commit 8bfecc5

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

docs/src/components/UtilityInjection.astro

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,74 @@ let utilities = [
103103
description: '[Actions in tables only] The table object that this action belongs to.',
104104
},
105105
],
106+
actionGroups: [
107+
{
108+
name: 'Action group',
109+
type: 'Filament\\Actions\\ActionGroup',
110+
parameter: '$group',
111+
description: 'The current action group instance.',
112+
},
113+
{
114+
name: 'Livewire',
115+
type: 'Livewire\\Component',
116+
parameter: '$livewire',
117+
description: 'The Livewire component instance.',
118+
},
119+
{
120+
name: 'Eloquent model FQN',
121+
type: '?string<Illuminate\\Database\\Eloquent\\Model>',
122+
parameter: '$model',
123+
description: 'The Eloquent model FQN for the current action group, if one is attached.',
124+
},
125+
{
126+
name: 'Eloquent record',
127+
type: '?Illuminate\\Database\\Eloquent\\Model',
128+
parameter: '$record',
129+
description: 'The Eloquent record for the current action group, if one is attached.',
130+
},
131+
{
132+
name: 'Mounted actions',
133+
type: 'array<Filament\\Actions\\Action>',
134+
parameter: '$mountedActions',
135+
description: 'The array of actions that are currently mounted in the Livewire component. This is useful for accessing data from parent actions.',
136+
},
137+
{
138+
name: 'Schema',
139+
type: 'Filament\\Schemas\\Schema',
140+
parameter: '$schema',
141+
description: '[Action groups in schemas only] The schema object that this action belongs to.',
142+
},
143+
{
144+
name: 'Schema component',
145+
type: 'Filament\\Schemas\\Components\\Component',
146+
parameter: '$schemaComponent',
147+
description: '[Action groups in schemas only] The schema component that this action belongs to.',
148+
},
149+
{
150+
name: 'Schema get function',
151+
type: 'Filament\\Schemas\\Components\\Utilities\\Get',
152+
parameter: '$schemaGet',
153+
description: '[Action groups in schemas only] A function for retrieving values from the schema data. Validation is not run on form fields.',
154+
},
155+
{
156+
name: 'Schema component state',
157+
type: 'mixed',
158+
parameter: '$schemaComponentState',
159+
description: '[Action groups in schemas only] The current value of the schema component.',
160+
},
161+
{
162+
name: 'Schema operation',
163+
type: 'string',
164+
parameter: '$schemaOperation',
165+
description: '[Action groups in schemas only] The current operation being performed by the schema. Usually <code>create</code>, <code>edit</code>, or <code>view</code>.',
166+
},
167+
{
168+
name: 'Table',
169+
type: 'Filament\\Tables\\Table',
170+
parameter: '$table',
171+
description: '[Action groups in tables only] The table object that this action belongs to.',
172+
},
173+
],
106174
formFields: [
107175
{
108176
name: 'Field',
@@ -302,6 +370,7 @@ utilities = Array.from(new Map(utilities.map((utility) => [utility.parameter, ut
302370
303371
const link = {
304372
actions: `/docs/${version}/actions/overview#action-utility-injection`,
373+
actionGroups: `/docs/${version}/actions/overview#action-utility-injection`,
305374
formFields: `/docs/${version}/forms/overview#field-utility-injection`,
306375
infolistEntries: `/docs/${version}/infolists/overview#entry-utility-injection`,
307376
schemaComponents: `/docs/${version}/schemas/overview#component-utility-injection`,

0 commit comments

Comments
 (0)