CustomItemDef Class

An Item that renders a React component.

Extends

Methods

Name Description
constructor(props: CustomItemProps): CustomItemDef    
toolbarReactNode(index?: number): ReactNode    

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 | ConditionalStringValue | StringGetter): void ActionButtonItemDef Set the description.
setLabel(v: string | ConditionalStringValue | StringGetter): void ActionButtonItemDef Set the label.
setTooltip(v: string | ConditionalStringValue | StringGetter): void ActionButtonItemDef Set the tooltip.
initializeDef(me: ItemDefBase, itemProps: ItemProps): void Static ActionButtonItemDef  

Properties

Name Type Description
customId string    
customIdPrefix Static string    
id Accessor ReadOnly string    
popupPanelNode undefined | ReactNode    
reactElement undefined | ReactNode    

Inherited properties

Name Type Inherited from Description
_commandHandler Protected undefined | CommandHandler ActionButtonItemDef Command Handler for the action button
applicationData undefined | any ActionButtonItemDef  
badgeType undefined | BadgeType ActionButtonItemDef  
defaultButtonSize Static number ActionButtonItemDef The default button size for all action buttons
description Accessor ReadOnly string ActionButtonItemDef Get the description string
iconElement undefined | ReactNode ActionButtonItemDef  
iconSpec undefined | IconSpec ActionButtonItemDef  
isActive Accessor boolean ActionButtonItemDef  
isDisabled boolean | ConditionalBooleanValue ActionButtonItemDef  
isEnabled boolean ActionButtonItemDef  
isHidden boolean | ConditionalBooleanValue ActionButtonItemDef  
isPressed boolean ActionButtonItemDef  
isVisible boolean ActionButtonItemDef  
label Accessor ReadOnly string ActionButtonItemDef Get the label string
parameters undefined | any ActionButtonItemDef Parameters passed to the Command Handler
rawLabel Accessor ReadOnly string | ConditionalStringValue | StringGetter ActionButtonItemDef Get the label string
size undefined | SizeProps ActionButtonItemDef Size of the action button, as set by handleSizeKnown
stateFunc undefined | (state: Readonly<BaseItemState>) => BaseItemState ActionButtonItemDef  
stateSyncIds string[] ActionButtonItemDef  
tooltip Accessor ReadOnly string ActionButtonItemDef Get the tooltip string
trayId Accessor ReadOnly undefined ActionButtonItemDef  

Defined in

Last Updated: 30 November, 2023