Interface ToggleActionProps
Source: ToggleAction.tsx
Extends
Properties
actionId?
optionalactionId?:string
ID of the action.
Inherited from
label?
optionallabel?:string
Label of the action.
Inherited from
icon?
optionalicon?:string|object
Icon for the action.
Inherited from
shortcut?
optionalshortcut?:string[]
Keyboard shortcut for the action.
Inherited from
onTrigger?
optionalonTrigger?: (event?:Event,triggerParams?:unknown, ...args:unknown[]) =>void
Function that handles the trigger event for the action.
Parameters
event?
triggerParams?
unknown
args
...unknown[]
Returns
void
Inherited from
children?
optionalchildren?:ReactNode
Inherited from
disabled?
optionaldisabled?:boolean
Whether the action should be disabled.
Inherited from
initialValue?
optionalinitialValue?:boolean