Actions overview
static resourceActions(actions: ActionBuilder) { actions.create('New product') actions.view() actions.edit() actions.delete().confirm('Delete this product?') actions.bulkDelete() actions.row('duplicate', 'Duplicate').icon('copy') actions.header('export', 'Export CSV').icon('download') return actions}Placements
Section titled “Placements”| Placement | Where |
|---|---|
| header | List/create toolbar (+ New, Export) |
| row | Per-record ⋮ menu (or inline via .ungrouped()) |
| bulk | Selection bar (Delete selected, …) |
Modifiers
Section titled “Modifiers”Action modifiers
| Method | Description |
|---|---|
.label(text) | Button label. |
.color(token) | primary, danger, gray, accent, … |
.icon(name) | Icon id. |
.confirm(message) | Confirmation dialog. |
.ability(name) | Permission gate. |
.grouped() / .ungrouped() | Row action menu vs inline. |
See Built-in actions and Custom actions.