Skip to content

Interface ToggleActionProps ​

Source: ToggleAction.tsx

Extends ​

Properties ​

actionId? ​

optional actionId?: string

ID of the action.

Inherited from ​

ActionProps.actionId


label? ​

optional label?: string

Label of the action.

Inherited from ​

ActionProps.label


icon? ​

optional icon?: string | object

Icon for the action.

Inherited from ​

ActionProps.icon


shortcut? ​

optional shortcut?: string[]

Keyboard shortcut for the action.

Inherited from ​

ActionProps.shortcut


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

Inherited from ​

ActionProps.onTrigger


children? ​

optional children?: ReactNode

Inherited from ​

ActionProps.children


disabled? ​

optional disabled?: boolean

Whether the action should be disabled.

Inherited from ​

ActionProps.disabled


initialValue? ​

optional initialValue?: boolean

Built by Prozilla