Documentation / @zerotal/admin / index / ActionGroup
Class: ActionGroup
Defined in: admin/src/actions/Action.ts:332
Several actions behind one dropdown.
A row with seven buttons is unreadable; a row with two buttons and a "More" menu is not. A group is not itself runnable — it holds actions, and the page renders each member the way it would have rendered it inline.
actionGroup([replicateAction(), archiveAction(), deleteAction()]).label("More")
Constructors
Constructor
new ActionGroup(
actions):ActionGroup
Defined in: admin/src/actions/Action.ts:337
Parameters
actions
Action[]
Returns
ActionGroup
Methods
label()
label(
label):this
Defined in: admin/src/actions/Action.ts:341
Parameters
label
string
Returns
this
icon()
icon(
name):this
Defined in: admin/src/actions/Action.ts:346
Parameters
name
string
Returns
this
getLabel()
getLabel():
string
Defined in: admin/src/actions/Action.ts:351
Returns
string
visibleActions()
visibleActions(
record,ctx):Action[]
Defined in: admin/src/actions/Action.ts:356
The members this user may actually see, in declaration order.
Parameters
record
AdminRecord | undefined
ctx
Returns
Action[]