Represents base class for all tool actions in toolbar

IgrToolAction

new IgrToolAction(props: P): IgrToolAction

Returns IgrToolAction

accentColor: string
actualAccentColor: string
actualBackground: string
actualDensity: ControlDisplayDensity
actualDisabledTextColor: string
actualHighlightColor: string
actualHighlightRadius: number
actualHighlightWidth: number
actualHoverBackground: string
actualIconFill: string
actualIconHeight: number
actualIconStroke: string
actualIconWidth: number
actualPaddingBottom: number
actualPaddingLeft: number
actualPaddingRight: number
actualPaddingTop: number
actualSubtitleTextColor: string
actualSubtitleTextStyle: FontInfo
actualTextColor: string
actualTextStyle: FontInfo
afterId: string
background: string
beforeId: string
closeOnExecute: boolean
commandArgument: string
commandArgumentValue: any
commandId: string
contextBindings: IgrToolContextBindingCollection
density: ControlDisplayDensity
disabledTextColor: string
height: number
highlightColor: string
highlightRadius: number
highlightWidth: number
hoverBackground: string
iconCollectionName: string
iconFill: string
iconFillColors: string[]
iconHeight: number
iconName: string
iconStroke: string
iconStrokeColors: string[]
iconStrokeWidth: number
iconViewBoxHeight: number
iconViewBoxLeft: number
iconViewBoxTop: number
iconViewBoxWidth: number
iconWidth: number
isDisabled: boolean
isHighlighted: boolean
name: string
onCommand: object
overlayId: string
paddingBottom: number
paddingLeft: number
paddingRight: number
paddingTop: number
parentId: string
performed: object
subPanelRowHeight: number
subtitle: string
subtitleTextColor: string
subtitleTextStyle: string
textColor: string
textStyle: string
title: string
titleHorizontalAlignment: HorizontalAlignment
visibility: Visibility
width: number
get actionId(): string

Returns string

Gets the sub actions associated with this tool action.

get actions(): IgrToolActionCollection

Returns IgrToolActionCollection

get isOpen(): boolean

Returns boolean

get nativeElement(): HTMLElement

Returns HTMLElement

closeSubmenu(): void

Returns void

componentDidMount(): void

Returns void

exportSerializedVisualData(): string

Returns string

exportVisualData(): any

Returns any

findByName(name: string): any

Parameters

  • name: string

Returns any

openSubMenu(): void

Returns void

render(): DetailedReactHTMLElement<object, HTMLElement>

Returns DetailedReactHTMLElement<object, HTMLElement>

shouldComponentUpdate(nextProps: any, nextState: any): boolean

Parameters

  • nextProps: any
  • nextState: any

Returns boolean

_createFromInternal(internal: any): IgrToolAction

Parameters

  • internal: any

Returns IgrToolAction