UNPKG

912 BTypeScriptView Raw
1import { ElementRef, OnInit } from '@angular/core';
2import { ControlValueAccessor } from '@angular/forms';
3export declare const RADIO_CONTROL_VALUE_ACCESSOR: any;
4/**
5 * Create radio buttons or groups of buttons.
6 * A value of a selected button is bound to a variable specified via ngModel.
7 */
8export declare class ButtonRadioDirective implements ControlValueAccessor, OnInit {
9 onChange: any;
10 onTouched: any;
11 /** Radio button value, will be set to `ngModel` */
12 btnRadio: any;
13 /** If `true` — radio button can be unchecked */
14 uncheckable: boolean;
15 /** Current value of radio component or group */
16 value: any;
17 protected el: ElementRef;
18 readonly isActive: boolean;
19 onClick(): void;
20 constructor(el: ElementRef);
21 ngOnInit(): void;
22 onBlur(): void;
23 writeValue(value: any): void;
24 registerOnChange(fn: any): void;
25 registerOnTouched(fn: any): void;
26}