Skip to content

Commit b6f81b1

Browse files
committed
Update UtilityInjection.astro
1 parent 5fa890e commit b6f81b1

File tree

1 file changed

+67
-3
lines changed

1 file changed

+67
-3
lines changed

docs/src/components/UtilityInjection.astro

Lines changed: 67 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,70 @@ let utilities = [
221221
description: 'The Eloquent record for the current schema.',
222222
},
223223
],
224+
exportColumns: [
225+
{
226+
name: 'Export column',
227+
type: 'Filament\\Actions\\Exports\\ExportColumn',
228+
parameter: '$column',
229+
description: 'The current export column instance.',
230+
},
231+
{
232+
name: 'Exporter',
233+
type: '?Filament\\Actions\\Exports\\Exporter',
234+
parameter: '$exporter',
235+
description: 'The instance of the exporter class that is currently being used for exporting data.',
236+
},
237+
{
238+
name: 'Options',
239+
type: 'array<string, mixed>',
240+
parameter: '$options',
241+
description: 'The options that were defined when the export started.',
242+
},
243+
{
244+
name: 'Eloquent record',
245+
type: '?Illuminate\\Database\\Eloquent\\Model',
246+
parameter: '$record',
247+
description: 'The Eloquent record that is currently being exported.',
248+
},
249+
],
250+
importColumns: [
251+
{
252+
name: 'Import column',
253+
type: 'Filament\\Actions\\Imports\\ImportColumn',
254+
parameter: '$column',
255+
description: 'The current import column instance.',
256+
},
257+
{
258+
name: 'Data',
259+
type: 'array<string, mixed>',
260+
parameter: '$data',
261+
description: 'The processed data for the record that is currently being imported.',
262+
},
263+
{
264+
name: 'Importer',
265+
type: '?Filament\\Actions\\Imports\\Importer',
266+
parameter: '$importer',
267+
description: 'The instance of the importer class that is currently being used for importing data.',
268+
},
269+
{
270+
name: 'Options',
271+
type: 'array<string, mixed>',
272+
parameter: '$options',
273+
description: 'The options that were defined when the import started.',
274+
},
275+
{
276+
name: 'Original data',
277+
type: 'array<string, mixed>',
278+
parameter: '$originalData',
279+
description: 'The original data for the record that is currently being imported, before it was processed.',
280+
},
281+
{
282+
name: 'Eloquent record',
283+
type: '?Illuminate\\Database\\Eloquent\\Model',
284+
parameter: '$record',
285+
description: 'The Eloquent record that is currently being imported.',
286+
},
287+
],
224288
infolistEntries: [
225289
{
226290
name: 'Entry',
@@ -376,17 +440,17 @@ const link = {
376440
schemaComponents: `/docs/${version}/schemas/overview#component-utility-injection`,
377441
tableColumns: `/docs/${version}/tables/columns/overview#column-utility-injection`,
378442
tableFilters: `/docs/${version}/tables/filters/overview#filter-utility-injection`,
379-
}[set]
443+
}[set] ?? null
380444
---
381445

382446
<details class="rounded-lg mb-6 bg-[#ffede0] dark:bg-[#100f1b] border-2 border-[#ffd6b6] dark:border-[#282732] px-4 py-2">
383447
<summary class="font-medium">
384448
<slot />
385449
</summary>
386450

387-
<a href={link} target="_blank" class="mt-3">
451+
{link && <a href={link} target="_blank" class="mt-3">
388452
Learn more about utility injection.
389-
</a>
453+
</a>}
390454

391455
<table class="block overflow-x-auto whitespace-nowrap mt-3 mb-0">
392456
<thead>

0 commit comments

Comments
 (0)