ConditionalItemDef Class


An Item that conditionally renders other items based on UiSync events.



Name Description
constructor(props: ConditionalItemProps): ConditionalItemDef    
getVisibleItems(): ActionButtonItemDef[]    
handleSyncUiEvent(args: SyncUiEventArgs): boolean    
resolveItems(force?: false | true): void    

Inherited methods

Name Inherited from Description
setLabel(v: string | StringGetter): void ItemDefBase Set the label.
setTooltip(v: string | StringGetter): void ItemDefBase Set the tooltip.
initializeDef(me: ItemDefBase, itemProps: ItemProps): void Static ItemDefBase  


Name Type Description
conditionalId string    
conditionalIdPrefix Static string    
id Accessor ReadOnly string    
items AnyItemDef[]    

Inherited properties

Name Type Inherited from Description
applicationData undefined | any ItemDefBase  
betaBadge boolean ItemDefBase  
iconElement undefined | React.ReactNode ItemDefBase  
iconSpec string | React.ReactNode ItemDefBase  
isActive boolean ItemDefBase  
isEnabled boolean ItemDefBase  
isPressed boolean ItemDefBase  
isVisible boolean ItemDefBase  
label Accessor ReadOnly string ItemDefBase Get the label string
stateFunc undefined | (state: Readonly<BaseItemState>) => BaseItemState ItemDefBase  
stateSyncIds string[] ItemDefBase  
tooltip Accessor ReadOnly string ItemDefBase Get the tooltip string
trayId Accessor ReadOnly undefined ItemDefBase  

Defined in

Last Updated: 10 September, 2019