UNPKG

ngx-bootstrap

Version:
33 lines (32 loc) 1.19 kB
import { ChangeDetectorRef, Provider, QueryList } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { ButtonRadioDirective } from './button-radio.directive'; export declare const RADIO_CONTROL_VALUE_ACCESSOR: Provider; /** * A group of radio buttons. * A value of a selected button is bound to a variable specified via ngModel. */ export declare class ButtonRadioGroupDirective implements ControlValueAccessor { private cdr; onChange: Function; onTouched: Function; readonly role: string; radioButtons: QueryList<ButtonRadioDirective>; get value(): string | null; set value(value: string | null); private _value; private _disabled; get tabindex(): null | number; constructor(cdr: ChangeDetectorRef); writeValue(value: string | null): void; registerOnChange(fn: () => {}): void; registerOnTouched(fn: () => {}): void; setDisabledState(disabled: boolean): void; onFocus(): void; onBlur(): void; selectNext(event: KeyboardEvent): void; selectPrevious(event: KeyboardEvent): void; get disabled(): boolean; private selectInDirection; private getActiveOrFocusedRadio; }