- Slots
-
default— The radio 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 radio control base wrapper.control— The radio input control.label— The radio control label.
Properties
Section titled "Properties"checked
Section titled "checked"The checked state of the control.
checked: boolean labelPosition
Section titled "labelPosition"The label position of the radio control.
labelPosition: ToggleLabelPosition required
Section titled "required"required: boolean value
Section titled "value"The value attribute of the control.
value: string Methods
Section titled "Methods"Removes focus from the radio control.
blur(): void Returns void
checkValidity
Section titled "checkValidity"Checks for validity of the control and emits the invalid event if it invalid.
checkValidity(): boolean Returns boolean
click
Section titled "click"Simulates a click on the radio control.
click(): void Returns void
focus
Section titled "focus"Sets focus on the radio control.
focus(options: FocusOptions): void Parameters
- options:
FocusOptions
Returns void
reportValidity
Section titled "reportValidity"Checks for validity of the control and shows the browser message if it invalid.
reportValidity(): boolean Returns boolean
setCustomValidity
Section titled "setCustomValidity"Sets a custom validation message for the control.
As long as message is not empty, the control is considered invalid.
setCustomValidity(message: string): void Parameters
- message:
string
Returns void
Events
Section titled "Events"onChange
Section titled "onChange"Emitted when the control's checked state changes.
onChange(args: CustomEvent<IgrRadioChangeEventArgs>): void