Class IgxRadioGroupDirective

Radio group directive renders set of radio buttons.

IgxRadioModule

igx-radio-theme

radiogroup, radio, button, input

Data Entry & Display

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.

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

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

Returns reference to the child radio buttons.

let radioButtons =  this.radioGroup.radioButtons;

Accessors

Methods

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

    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.

    this.radioGroup.writeValue('radioButtonValue');
    

    Parameters

    • value: any

    Returns void