Skip to main content

Module resource

Module resource 

Source
Expand description

What an app declares for each model in the panel: AdminResource, with its AdminActions and Filters.

Structs§

ActionContext
What an action’s code gets besides the records.
ActionInput
What the user typed into an action’s form, already checked against the form’s fields (AdminAction::form). Money fields are in the currency’s smallest unit, toggles are true or false, and a field left empty is the empty text.
AdminAction
An action of a resource’s list (Filament’s bulk actions): a button over the selected rows that runs run with their records and shows the toast it returns. With row, each row’s menu has it too.
Filter
A named filter over a resource’s list (Filament’s tabs and preset filters), chosen with ?filter=key.
SaveContext
What a resource’s saved hook gets besides the record.

Traits§

AdminResource
A model in the admin panel (Filament’s resources), declared once: the grid’s columns, the form’s fields, its filters and actions, and who may do what (its Policy).

Type Aliases§

BoxFuture
A boxed future that can be sent between threads, as an action returns.