Hierarchy

Hierarchy

Constructors

  • Parameters

    Returns IgrXCheckbox

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<IIgrXCheckboxProps> & 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 actualBorderWidth(): number
  • Gets or sets the Width to use for the check mark when the checkbox is checked.

    Returns number

  • set actualBorderWidth(v): void
  • Parameters

    • v: number

    Returns void

  • get actualCheckedBackgroundColor(): string
  • Gets or sets the color to use for the actual background when the checkbox is checked.

    Returns string

  • set actualCheckedBackgroundColor(v): void
  • Parameters

    • v: string

    Returns void

  • get actualCheckedBorderColor(): string
  • Gets or sets the color to use for the check mark when the checkbox is checked.

    Returns string

  • set actualCheckedBorderColor(v): void
  • Parameters

    • v: string

    Returns void

  • get actualCornerRadius(): number
  • Gets the actual corner radius to use for the checkbox.

    Returns number

  • set actualCornerRadius(v): void
  • Parameters

    • v: number

    Returns void

  • get actualTickColor(): string
  • Gets or sets the color to use for the check mark when the checkbox is checked.

    Returns string

  • set actualTickColor(v): void
  • Parameters

    • v: string

    Returns void

  • get actualTickStrokeWidth(): number
  • Gets or sets the stroke width to use for the check mark.

    Returns number

  • set actualTickStrokeWidth(v): void
  • Parameters

    • v: number

    Returns void

  • get actualUncheckedBackgroundColor(): string
  • Gets or sets the color to use for the actual background when the checkbox is unchecked.

    Returns string

  • set actualUncheckedBackgroundColor(v): void
  • Parameters

    • v: string

    Returns void

  • get actualUncheckedBorderColor(): string
  • Gets or sets the color to use for the check mark when the checkbox is checked.

    Returns string

  • set actualUncheckedBorderColor(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 ariaLabelledBy(): string
  • Gets or sets the value of the aria-labelledby attribute.

    Returns string

  • set ariaLabelledBy(v): void
  • Parameters

    • v: string

    Returns void

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

    Returns BaseControlTheme

  • set baseTheme(v): void
  • Parameters

    • v: BaseControlTheme

    Returns void

  • get borderWidth(): number
  • Gets or sets the Width to use for the check mark when the checkbox is checked.

    Returns number

  • set borderWidth(v): void
  • Parameters

    • v: number

    Returns void

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

  • set change(ev): void
  • Parameters

    Returns void

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

    Returns boolean

  • set checked(v): void
  • Parameters

    • v: boolean

    Returns void

  • get checkedBackgroundColor(): string
  • Gets or sets the color to use for the background when the checkbox is checked.

    Returns string

  • set checkedBackgroundColor(v): void
  • Parameters

    • v: string

    Returns void

  • get checkedBorderColor(): string
  • Gets or sets the color to use for the check mark when the checkbox is checked.

    Returns string

  • set checkedBorderColor(v): void
  • Parameters

    • v: string

    Returns void

  • get cornerRadius(): number
  • Gets or sets the corner radius to use for the checkbox.

    Returns number

  • set cornerRadius(v): void
  • Parameters

    • v: number

    Returns void

  • get disableRipple(): boolean
  • Gets or sets whether to disable the ripple effect for the checkbox.

    Returns boolean

  • set disableRipple(v): void
  • Parameters

    • v: boolean

    Returns void

  • get disableTransitions(): boolean
  • Gets or sets whether the checkbox transitions are disabled.

    Returns boolean

  • set disableTransitions(v): void
  • Parameters

    • v: boolean

    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 focused(): boolean
  • Gets or sets if the checkbox is Focused.

    Returns boolean

  • set focused(v): void
  • Parameters

    • v: boolean

    Returns void

  • get i(): XCheckbox
  • Returns XCheckbox

  • 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 indeterminate(): boolean
  • Gets or sets whether the checkbox is indeterminate.

    Returns boolean

  • set indeterminate(v): void
  • Parameters

    • v: boolean

    Returns void

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

    Returns string

  • set inputId(v): void
  • Parameters

    • v: string

    Returns void

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

    Returns string

  • set labelId(v): void
  • Parameters

    • v: string

    Returns void

  • get labelPosition(): CheckboxLabelPosition
  • Gets or sets LabelPosition to use for the checkbox.

    Returns CheckboxLabelPosition

  • set labelPosition(v): void
  • Parameters

    • v: CheckboxLabelPosition

    Returns void

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

    Returns string

  • set name(v): void
  • Parameters

    • v: string

    Returns void

  • get required(): number
  • Gets or sets if the checkbox is required.

    Returns number

  • set required(v): void
  • Parameters

    • v: number

    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 tickColor(): string
  • Gets or sets the color to use for the check mark when the checkbox is checked.

    Returns string

  • set tickColor(v): void
  • Parameters

    • v: string

    Returns void

  • get tickStrokeWidth(): number
  • Gets or sets the corner radius to use for the checkbox.

    Returns number

  • set tickStrokeWidth(v): void
  • Parameters

    • v: number

    Returns void

  • get uncheckedBackgroundColor(): string
  • Gets or sets the color to use for the background when the checkbox is unchecked.

    Returns string

  • set uncheckedBackgroundColor(v): void
  • Parameters

    • v: string

    Returns void

  • get uncheckedBorderColor(): string
  • Gets or sets the color to use for the check mark when the checkbox is unchecked.

    Returns string

  • set uncheckedBorderColor(v): void
  • Parameters

    • v: string

    Returns void

  • get value(): any
  • Gets or sets value to use for the checkbox.

    Returns any

  • set value(v): void
  • Parameters

    • v: any

    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

    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