Hierarchy

Hierarchy

Constructors

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<IIgrXLabelProps & HTMLAttributes<HTMLElement>> & 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 actualDensity(): ControlDisplayDensity
  • Gets the actual display density to use for the label.

    Returns ControlDisplayDensity

  • set actualDensity(v): void
  • Parameters

    • v: ControlDisplayDensity

    Returns void

  • get actualHighlightTextColor(): string
  • Gets the actual color to use for the text color.

    Returns string

  • set actualHighlightTextColor(v): void
  • Parameters

    • v: string

    Returns void

  • get actualHoverHighlightTextColor(): string
  • Gets the actual color to use for the text color when highlighted and hovered.

    Returns string

  • set actualHoverHighlightTextColor(v): void
  • Parameters

    • v: string

    Returns void

  • get actualHoverTextColor(): string
  • Gets the actual hover color to use for the text.

    Returns string

  • set actualHoverTextColor(v): void
  • Parameters

    • v: string

    Returns void

  • get actualTextColor(): string
  • Gets the actual color to use for the text color.

    Returns string

  • set actualTextColor(v): void
  • Parameters

    • v: string

    Returns void

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

    Returns string

  • set alignItems(v): void
  • Parameters

    • v: string

    Returns void

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

    Returns string

  • set alignSelf(v): void
  • Parameters

    • v: string

    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 label.

    Returns BaseControlTheme

  • set baseTheme(v): void
  • Parameters

    • v: BaseControlTheme

    Returns void

  • get density(): ControlDisplayDensity
  • Gets or sets the display density to use for the label.

    Returns ControlDisplayDensity

  • set density(v): void
  • Parameters

    • v: ControlDisplayDensity

    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 display(): string
  • Gets or sets the id to use for the checkbox.

    Returns string

  • set display(v): void
  • Parameters

    • v: string

    Returns void

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

    Returns string

  • set flexDirection(v): void
  • Parameters

    • v: string

    Returns void

  • get flexGrow(): string
  • Gets or sets the flex-grow setting for the button.

    Returns string

  • set flexGrow(v): void
  • Parameters

    • v: string

    Returns void

  • get for(): string
  • Gets or sets the for attribute to use for the label.

    Returns string

  • set for(v): void
  • Parameters

    • v: string

    Returns void

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

    Returns string

  • set highlightTextColor(v): void
  • Parameters

    • v: string

    Returns void

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

    Returns string

  • set hoverHighlightTextColor(v): void
  • Parameters

    • v: string

    Returns void

  • get hoverTextColor(): string
  • Gets or sets the color to use for the hovered text of the button regardless of type.

    Returns string

  • set hoverTextColor(v): void
  • Parameters

    • v: string

    Returns void

  • 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 label is hovered.

    Returns boolean

  • set isHover(v): void
  • Parameters

    • v: boolean

    Returns void

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

    Returns string

  • set name(v): void
  • Parameters

    • v: string

    Returns void

  • get nativeElement(): HTMLElement
  • Returns HTMLElement

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

    Returns number

  • set tabIndex(v): void
  • Parameters

    • v: number

    Returns void

  • get text(): string
  • Gets or sets the text for the label.

    Returns string

  • set text(v): void
  • Parameters

    • v: string

    Returns void

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

    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 value(): boolean
  • Gets or sets the value for the label.

    Returns boolean

  • set value(v): void
  • Parameters

    • v: boolean

    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

  • 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<IIgrXLabelProps & HTMLAttributes<HTMLElement>>
    • prevState: Readonly<{}>
    • Optional snapshot: any

    Returns void

  • Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as cancelled network requests, or cleaning up any DOM elements created in componentDidMount.

    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

    • prevProps: Readonly<IIgrXLabelProps & HTMLAttributes<HTMLElement>>
    • prevState: Readonly<{}>

    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