Class IgxRadioGroupDirective

Radio group directive renders set of radio buttons.

Igx Module

IgxRadioModule

Igx Theme

igx-radio-theme

Igx Keywords

radiogroup, radio, button, input

Igx Group

Data Entry & Display

Remarks

The Ignite UI Radio Group allows the user to select a single option from an available set of options that are listed side by side.

@example:

<igx-radio-group name="radioGroup">
<igx-radio *ngFor="let item of ['Foo', 'Bar', 'Baz']" value="{{item}}">
{{item}}
</igx-radio>
</igx-radio-group>

Implements

  • AfterContentInit
  • AfterViewInit
  • ControlValueAccessor
  • OnDestroy
  • DoCheck

Constructors

Properties

change: EventEmitter<IChangeCheckboxEventArgs> = ...

An event that is emitted after the radio group value is changed.

Remarks

Provides references to the selected IgxRadioComponent and the value property as event arguments.

Example

<igx-radio-group (change)="handler($event)"></igx-radio-group>
ngControl: NgControl
radioButtons: QueryList<IgxRadioComponent>

Returns reference to the child radio buttons.

Example

let radioButtons =  this.radioGroup.radioButtons;

Accessors

Methods

  • Sets the "checked" property value on the radio input element.

    Remarks

    Checks whether the provided value is consistent to the current radio button. If it is, the checked attribute will have value true and selected property will contain the selected IgxRadioComponent.

    Example

    this.radioGroup.writeValue('radioButtonValue');
    

    Parameters

    • value: any

    Returns void