Hierarchy

Hierarchy

Constructors

  • Parameters

    Returns IgrXIcon

Properties

context: any

If using the new style context, re-declare this in your class to be the React.ContextType of your static contextType. Should be used with type annotation or static contextType.

static contextType = MyContext
// For TS pre-3.7:
context!: React.ContextType<typeof MyContext>
// For TS 3.7 and above:
declare context: React.ContextType<typeof MyContext>
props: Readonly<IIgrXIconProps> & Readonly<{
    children?: ReactNode;
}>
refs: {
    [key: string]: ReactInstance;
}

Type declaration

  • [key: string]: ReactInstance
state: Readonly<{}>
contextType?: Context<any>

If set, this.context will be set at runtime to the current value of the given Context.

Usage:

type MyContext = number
const Ctx = React.createContext<MyContext>(0)

class Foo extends React.Component {
static contextType = Ctx
context!: React.ContextType<typeof Ctx>
render () {
return <>My context's value: {this.context}</>;
}
}

Accessors

  • get actualFill(): string
  • Gets the fill color currently used by the icon.

    Returns string

  • set actualFill(v): void
  • Parameters

    • v: string

    Returns void

  • get actualStroke(): string
  • Gets the stroke color currently used by the icon.

    Returns string

  • set actualStroke(v): void
  • Parameters

    • v: string

    Returns void

  • get actualStrokeWidth(): number
  • Gets the stroke width currently used by the icon.

    Returns number

  • set actualStrokeWidth(v): void
  • Parameters

    • v: number

    Returns void

  • get actualTextColor(): string
  • Gets the text color currently used by the icon.

    Returns string

  • set actualTextColor(v): void
  • Parameters

    • v: string

    Returns void

  • get actualViewBoxHeight(): number
  • Gets the actual viewbox height for the svg icon.

    Returns number

  • set actualViewBoxHeight(v): void
  • Parameters

    • v: number

    Returns void

  • get actualViewBoxLeft(): number
  • Gets the actual viewbox left for the svg icon.

    Returns number

  • set actualViewBoxLeft(v): void
  • Parameters

    • v: number

    Returns void

  • get actualViewBoxTop(): number
  • Gets the actual viewbox top for the svg icon.

    Returns number

  • set actualViewBoxTop(v): void
  • Parameters

    • v: number

    Returns void

  • get actualViewBoxWidth(): number
  • Gets the actual viewbox width for the svg icon.

    Returns number

  • set actualViewBoxWidth(v): void
  • Parameters

    • v: number

    Returns void

  • get ariaLabel(): string
  • Gets or sets the value of the aria-label attribute.

    Returns string

  • set ariaLabel(v): void
  • Parameters

    • v: string

    Returns void

  • get baseTheme(): BaseControlTheme
  • Gets or sets the base built in theme to use for the button.

    Returns BaseControlTheme

  • set baseTheme(v): void
  • Parameters

    • v: BaseControlTheme

    Returns void

  • get dataURL(): string
  • Gets or sets data url for the icon to use.

    Returns string

  • set dataURL(v): void
  • Parameters

    • v: string

    Returns void

  • get disabled(): boolean
  • Gets or sets whether the checkbox is disabled.

    Returns boolean

  • set disabled(v): void
  • Parameters

    • v: boolean

    Returns void

  • get fill(): string
  • Gets or sets the fill color to use for the icon.

    Returns string

  • set fill(v): void
  • Parameters

    • v: string

    Returns void

  • get fillColors(): string[]
  • Gets or sets a collection of fill colors to use in the icon. These colors can be used by SVG elements that have been marked with the ig-icon-fill-# class where # is a number from 0 to count - 1.

    Returns string[]

  • set fillColors(v): void
  • Parameters

    • v: string[]

    Returns void

  • get height(): number
  • Gets or sets the height of the icon.

    Returns number

  • set height(v): void
  • Parameters

    • v: number

    Returns void

  • get hoverFill(): string
  • Gets or sets the fill color to use when the icon is hovered.

    Returns string

  • set hoverFill(v): void
  • Parameters

    • v: string

    Returns void

  • get hoverStroke(): string
  • Gets or sets the stroke color to use when the icon is hovered.

    Returns string

  • set hoverStroke(v): void
  • Parameters

    • v: string

    Returns void

  • get hoverStrokeThickness(): number
  • Gets or sets the stroke thickness to use when the icon is hovered.

    Returns number

  • set hoverStrokeThickness(v): void
  • Parameters

    • v: number

    Returns void

  • get hoverTextColor(): string
  • Gets or sets the text color to use when the icon is hovered.

    Returns string

  • set hoverTextColor(v): void
  • Parameters

    • v: string

    Returns void

  • get i(): XIcon
  • Returns XIcon

  • get id(): string
  • Gets or sets the id to use for the checkbox.

    Returns string

  • set id(v): void
  • Parameters

    • v: string

    Returns void

  • get isHover(): boolean
  • Gets or sets whether the icon is hovered.

    Returns boolean

  • set isHover(v): void
  • Parameters

    • v: boolean

    Returns void

  • get opacity(): number
  • Returns number

  • set opacity(v): void
  • Parameters

    • v: number

    Returns void

  • get primaryFillColor(): string
  • Gets or sets a primary fill color for the icon. This color is used by SVG elements that have been marked with the ig-icon-primary-fill class.

    Returns string

  • set primaryFillColor(v): void
  • Parameters

    • v: string

    Returns void

  • get primaryStrokeColor(): string
  • Gets or sets a primary stroke color for the icon. This color is used by SVG elements that have been marked with the ig-icon-primary-stroke class.

    Returns string

  • set primaryStrokeColor(v): void
  • Parameters

    • v: string

    Returns void

  • get sVGPaths(): string[]
  • Gets or sets an array of path data for the icon to use.

    Returns string[]

  • set sVGPaths(v): void
  • Parameters

    • v: string[]

    Returns void

  • get secondaryFillColor(): string
  • Gets or sets a secondary fill color for the icon. This color is used by SVG elements that have been marked with the ig-icon-secondary-fill class.

    Returns string

  • set secondaryFillColor(v): void
  • Parameters

    • v: string

    Returns void

  • get secondaryStrokeColor(): string
  • Gets or sets a secondary stroke color for the icon. This color is used by SVG elements that have been marked with the ig-icon-secondary-stroke class.

    Returns string

  • set secondaryStrokeColor(v): void
  • Parameters

    • v: string

    Returns void

  • get source(): any
  • Gets or sets the image source for the icon. Used if none of the other icon types are not used.

    Returns any

  • set source(v): void
  • Parameters

    • v: any

    Returns void

  • get stroke(): string
  • Gets or sets the stroke color to use for the icon.

    Returns string

  • set stroke(v): void
  • Parameters

    • v: string

    Returns void

  • get strokeColors(): string[]
  • Gets or sets a collection of stroke colors to use in the icon. These colors can be used by SVG elements that have been marked with the ig-icon-stroke-# class where # is a number from 0 to count - 1.

    Returns string[]

  • set strokeColors(v): void
  • Parameters

    • v: string[]

    Returns void

  • get strokeWidth(): number
  • Gets or sets the stroke thickness to use for the icon.

    Returns number

  • set strokeWidth(v): void
  • Parameters

    • v: number

    Returns void

  • get svg(): string
  • Gets or sets svg text for the icon to use.

    Returns string

  • set svg(v): void
  • Parameters

    • v: string

    Returns void

  • get svgPath(): string
  • Gets or sets path data for the icon to use.

    Returns string

  • set svgPath(v): void
  • Parameters

    • v: string

    Returns void

  • get tabIndex(): number
  • Gets or sets TabIndex to use for the checkbox.

    Returns number

  • set tabIndex(v): void
  • Parameters

    • v: number

    Returns void

  • get textColor(): string
  • Gets or sets the text color to use for the icon.

    Returns string

  • set textColor(v): void
  • Parameters

    • v: string

    Returns void

  • get textStyle(): string
  • Gets or sets the use for the button.

    Returns string

  • set textStyle(v): void
  • Parameters

    • v: string

    Returns void

  • get viewBoxHeight(): number
  • Gets or sets the viewbox height for the svg icon.

    Returns number

  • set viewBoxHeight(v): void
  • Parameters

    • v: number

    Returns void

  • get viewBoxLeft(): number
  • Gets or sets the viewbox left for the svg icon.

    Returns number

  • set viewBoxLeft(v): void
  • Parameters

    • v: number

    Returns void

  • get viewBoxTop(): number
  • Gets or sets the viewbox top for the svg icon.

    Returns number

  • set viewBoxTop(v): void
  • Parameters

    • v: number

    Returns void

  • get viewBoxWidth(): number
  • Gets or sets the viewbox width for the svg icon.

    Returns number

  • set viewBoxWidth(v): void
  • Parameters

    • v: number

    Returns void

  • get width(): number
  • Gets or sets the width of the icon.

    Returns number

  • set width(v): void
  • Parameters

    • v: number

    Returns void

Methods

  • Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.

    Parameters

    • error: Error
    • errorInfo: ErrorInfo

    Returns void

  • Returns void

  • Called immediately after updating occurs. Not called for the initial render.

    The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.

    Parameters

    • prevProps: Readonly<IIgrXIconProps>
    • prevState: Readonly<{}>
    • Optional snapshot: any

    Returns void

  • Returns void

  • Returns void

  • Returns a serialized copy of the exported visual model

    Returns string

  • Exports visual information about the current state of the grid.

    Returns any

  • Parameters

    • name: string

    Returns any

  • Parameters

    • Optional callback: (() => void)
        • (): void
        • Returns void

    Returns void

  • Runs before React applies the result of render to the document, and returns an object to be given to componentDidUpdate. Useful for saving things such as scroll position before render causes changes to it.

    Note: the presence of getSnapshotBeforeUpdate prevents any of the deprecated lifecycle events from running.

    Parameters

    Returns any

  • Returns void

  • Returns void

  • Returns void

  • Returns DetailedReactHTMLElement<{
        children: any[];
        className: string;
        ref: ((ref) => void);
    }, any>

  • Type parameters

    Type Parameters

    • K extends never

    Parameters

    • state: {} | ((prevState, props) => {} | Pick<{}, K>) | Pick<{}, K>
    • Optional callback: (() => void)
        • (): void
        • Returns void

    Returns void

  • Parameters

    • nextProps: any
    • nextState: any

    Returns boolean

  • Returns void