Skip to content

Interface ActionProps

Source: Actions.tsx

Extended by

Properties

actionId?

optional actionId: string

ID of the action


children?

optional children: ReactNode


disabled?

optional disabled: boolean

Whether the action should be disabled


icon?

optional icon: string | object

Icon for the action


label?

optional label: string

Label of the action


onTrigger()?

optional onTrigger: (event?: Event, triggerParams?: unknown, ...args: unknown[]) => void

Function that handles the trigger event for the action

Parameters

event?

Event

triggerParams?

unknown

args?

...unknown[]

Returns

void


shortcut?

optional shortcut: string[]

Keyboard shortcut for the action

Built by Prozilla