UNPKG

1.51 kBTypeScriptView Raw
1import { ChangeDetectorRef, Provider, QueryList } from '@angular/core';
2import { ControlValueAccessor } from '@angular/forms';
3import { ButtonRadioDirective } from './button-radio.directive';
4import * as ɵngcc0 from '@angular/core';
5export declare const RADIO_CONTROL_VALUE_ACCESSOR: Provider;
6/**
7 * A group of radio buttons.
8 * A value of a selected button is bound to a variable specified via ngModel.
9 */
10export declare class ButtonRadioGroupDirective implements ControlValueAccessor {
11 private cdr;
12 onChange: Function;
13 onTouched: Function;
14 readonly role: string;
15 radioButtons?: QueryList<ButtonRadioDirective>;
16 constructor(cdr: ChangeDetectorRef);
17 private _value?;
18 get value(): string | undefined;
19 set value(value: string | undefined);
20 private _disabled;
21 get disabled(): boolean;
22 get tabindex(): null | number;
23 writeValue(value?: string): void;
24 registerOnChange(fn: () => void): void;
25 registerOnTouched(fn: () => void): void;
26 setDisabledState(disabled: boolean): void;
27 onFocus(): void;
28 onBlur(): void;
29 selectNext(event: KeyboardEvent): void;
30 selectPrevious(event: KeyboardEvent): void;
31 private selectInDirection;
32 private getActiveOrFocusedRadio;
33 static ɵfac: ɵngcc0.ɵɵFactoryDef<ButtonRadioGroupDirective, never>;
34 static ɵdir: ɵngcc0.ɵɵDirectiveDefWithMeta<ButtonRadioGroupDirective, "[btnRadioGroup]", never, {}, {}, ["radioButtons"]>;
35}
36
37//# sourceMappingURL=button-radio-group.directive.d.ts.map
\No newline at end of file