Class IgcRadioComponent

Element

igc-radio

Slot

  • The radio label.

Fires

igcChange - Emitted when the control's checked state changes.

Fires

igcFocus - Emitted when the control gains focus.

Fires

igcBlur - Emitted when the control loses focus.

Csspart

base - The radio control base wrapper.

Csspart

control - The radio control.

Csspart

label - The radio control label.

Hierarchy

  • EventEmitterInterface<IgcRadioEventMap, this> & LitElement<this>
    • IgcRadioComponent

Constructors

Properties

ariaLabelledby: string

Sets the aria-labelledby attribute for the radio control.

Attr

checked: boolean = false

The checked state of the control.

Attr

disabled: boolean = false

Disables the radio control.

Attr

invalid: boolean = false

Controls the validity of the control.

Attr

labelPosition: "after" | "before" = 'after'

The label position of the radio control.

Attr

label-position

name: string

The name attribute of the control.

Attr

required: boolean = false

Makes the control a required field.

Attr

value: string

The value attribute of the control.

Attr

tagName: "igc-radio" = 'igc-radio'

Methods

  • Removes focus from the radio control.

    Returns void

  • Simulates a click on the radio control.

    Returns void

  • Returns void

  • Returns void

  • Type Parameters

    • K extends keyof IgcRadioEventMap

    • D extends boolean | void

    Parameters

    • type: K
    • Optional eventInitDict: CustomEventInit<D>

    Returns boolean

  • Sets focus on the radio control.

    Parameters

    • Optional options: FocusOptions

    Returns void

  • Checks for validity of the control and shows the browser message if it invalid.

    Returns boolean

  • Sets a custom validation message for the control. As long as message is not empty, the control is considered invalid.

    Parameters

    • message: string

    Returns void