A check box allowing single values to be selected/deselected.

Slots
default — The checkbox label.
helper-text — Renders content below the input.
value-missing — Renders content when the required validation fails.
custom-error — Renders content when setCustomValidity(message) is set.
invalid — Renders content when the component is in invalid state (validity.valid = false).
CSS Parts
base — The base wrapper of the checkbox.
control — The checkbox input element.
label — The checkbox label.
indicator — The checkbox indicator icon.

The checked state of the control.

checked: boolean

Draws the checkbox in indeterminate state.

indeterminate: boolean

The label position of the control.

labelPosition: ToggleLabelPosition

The value attribute of the control.

value: string

Removes focus from the control.

blur(): void

Returns void

Simulates a click on the control.

click(): void

Returns void

Sets focus on the control.

focus(options: FocusOptions): void

Parameters

  • options: FocusOptions

Returns void

Emitted when the control's checked state changes.

onChange(args: CustomEvent<IgrCheckboxChangeEventArgs>): void

Parameters

Returns void