CommandItemDef Class
Deprecated in 4.15.0. Use specific item types instead, i.e. ToolbarActionItem.
An Item that executes a Command.
Extends
Methods
Name | Description | |
---|---|---|
constructor(commandItemProps: CommandItemProps, onItemExecuted?: OnItemExecutedFunc): CommandItemDef |
Inherited methods
Name | Inherited from | Description |
---|---|---|
execute(): void | ActionButtonItemDef | Called when the action button is invoked by a click or touch |
getDimension(orientation: Orientation): number | ActionButtonItemDef | Determines the dimension in a given orientation |
handleSizeKnown(size: SizeProps): void | ActionButtonItemDef | Called when the size of the action button is initialized and the size is known |
setDescription(v: string | StringGetter | ConditionalStringValue): void | ActionButtonItemDef | Set the description. |
setLabel(v: string | StringGetter | ConditionalStringValue): void | ActionButtonItemDef | Set the label. |
setTooltip(v: string | StringGetter | ConditionalStringValue): void | ActionButtonItemDef | Set the tooltip. |
initializeDef(me: ItemDefBase, itemProps: ItemProps): void Static | ActionButtonItemDef |
Properties
Name | Type | Description | |
---|---|---|---|
commandId | string | ||
commandIdPrefix Static | string | ||
id Accessor ReadOnly | string |
Inherited properties
Name | Type | Inherited from | Description |
---|---|---|---|
_commandHandler Protected | CommandHandler | undefined | ActionButtonItemDef | Command Handler for the action button |
applicationData | any | undefined | ActionButtonItemDef | |
badgeKind | BadgeKind | undefined | ActionButtonItemDef | |
badgeType | BadgeType | undefined | ActionButtonItemDef | |
defaultButtonSize Static | number | ActionButtonItemDef | The default button size for all action buttons |
description Accessor ReadOnly | string | ActionButtonItemDef | Get the description string |
iconElement | React.ReactNode | undefined | ActionButtonItemDef | |
iconSpec | IconSpec | undefined | ActionButtonItemDef | |
isActive Accessor | boolean | ActionButtonItemDef | |
isDisabled | boolean | ConditionalBooleanValue | ActionButtonItemDef | |
isHidden | boolean | ConditionalBooleanValue | ActionButtonItemDef | |
isPressed | boolean | ActionButtonItemDef | |
label Accessor ReadOnly | string | ActionButtonItemDef | Get the label string |
parameters | any | undefined | ActionButtonItemDef | Parameters passed to the Command Handler |
rawLabel Accessor ReadOnly | string | StringGetter | ConditionalStringValue | ActionButtonItemDef | Get the label string |
size | SizeProps | undefined | ActionButtonItemDef | Size of the action button, as set by handleSizeKnown |
tooltip Accessor ReadOnly | string | ActionButtonItemDef | Get the tooltip string |
trayId Accessor ReadOnly | undefined | ActionButtonItemDef |
Defined in
Last Updated: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.