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<IIgrXInputProps & 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 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 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 change(): ((s, e) => void)
  • Returns ((s, e) => void)

  • set change(ev): void
  • Parameters

    Returns void

  • get changing(): ((s, e) => void)
  • Returns ((s, e) => void)

  • set changing(ev): void
  • Parameters

    Returns void

  • get compositionEnd(): ((s, e) => void)
  • Returns ((s, e) => void)

  • set compositionEnd(ev): void
  • Parameters

    Returns void

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

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

    Returns string

  • set for(v): void
  • Parameters

    • v: string

    Returns void

  • get hasValue(): boolean
  • Returns boolean

  • 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 includeLiterals(): boolean
  • Specifies if the bound value includes the formatting symbols.

    Returns boolean

  • set includeLiterals(v): void
  • Parameters

    • v: boolean

    Returns void

  • get inputType(): string
  • Gets or sets the type to use for the input.

    Returns string

  • set inputType(v): void
  • Parameters

    • v: string

    Returns void

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

    Returns boolean

  • set isHover(v): void
  • Parameters

    • v: boolean

    Returns void

  • get keyDown(): ((s, e) => void)
  • Returns ((s, e) => void)

      • (s, e): void
      • Parameters

        Returns void

  • set keyDown(ev): void
  • Parameters

    • ev: ((s, e) => void)
        • (s, e): void
        • Parameters

          Returns void

    Returns void

  • get keyPress(): ((s, e) => void)
  • Returns ((s, e) => void)

      • (s, e): void
      • Parameters

        Returns void

  • set keyPress(ev): void
  • Parameters

    • ev: ((s, e) => void)
        • (s, e): void
        • Parameters

          Returns void

    Returns void

  • get keyUp(): ((s, e) => void)
  • Returns ((s, e) => void)

      • (s, e): void
      • Parameters

        Returns void

  • set keyUp(ev): void
  • Parameters

    • ev: ((s, e) => void)
        • (s, e): void
        • Parameters

          Returns void

    Returns void

  • get mask(): string
  • Gets/Sets the input mask for the input.

    Returns string

  • set mask(v): void
  • Parameters

    • v: string

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

    Returns string

  • set placeholder(v): void
  • Parameters

    • v: string

    Returns void

  • get promptChar(): string
  • Gets/Sets the character representing a fillable spot in the input mask

    Returns string

  • set promptChar(v): void
  • Parameters

    • v: string

    Returns void

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

    Returns boolean

  • set readonly(v): void
  • Parameters

    • v: boolean

    Returns void

  • get selectionEnd(): number
  • Returns / Sets the end index of the selected text. When nothing is selected, this returns the position of the text input cursor (caret) inside of the input.

    Returns number

  • set selectionEnd(v): void
  • Parameters

    • v: number

    Returns void

  • get selectionStart(): number
  • Returns / Sets the beginning index of the selected text. When nothing is selected, this returns the position of the text input cursor (caret) inside of the input.

    Returns number

  • set selectionStart(v): void
  • Parameters

    • v: number

    Returns void

  • get showSpinner(): boolean
  • Returns boolean

  • set showSpinner(v): void
  • Parameters

    • v: boolean

    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 textAlignment(): HorizontalAlignment
  • Gets or sets the alignment of the text.

    Returns HorizontalAlignment

  • set textAlignment(v): void
  • Parameters

    • v: HorizontalAlignment

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

    Returns string

  • set value(v): void
  • Parameters

    • v: string

    Returns void

Methods

  • Returns void

  • 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<IIgrXInputProps & 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<IIgrXInputProps & HTMLAttributes<HTMLElement>>
    • prevState: Readonly<{}>

    Returns any

  • Returns void

  • Returns void

  • Returns void

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

  • Returns void

  • Parameters

    • selectionStart: number
    • selectionEnd: number

    Returns void

  • 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