ng2-bootstrap
Version:
Native Angular Bootstrap Components
27 lines (26 loc) • 912 B
TypeScript
import { ElementRef, OnInit } from '@angular/core';
import { ControlValueAccessor } from '@angular/forms';
export declare const RADIO_CONTROL_VALUE_ACCESSOR: any;
/**
* Create radio buttons or groups of buttons.
* A value of a selected button is bound to a variable specified via ngModel.
*/
export declare class ButtonRadioDirective implements ControlValueAccessor, OnInit {
onChange: any;
onTouched: any;
/** Radio button value, will be set to `ngModel` */
btnRadio: any;
/** If `true` — radio button can be unchecked */
uncheckable: boolean;
/** Current value of radio component or group */
value: any;
protected el: ElementRef;
readonly isActive: boolean;
onClick(): void;
constructor(el: ElementRef);
ngOnInit(): void;
onBlur(): void;
writeValue(value: any): void;
registerOnChange(fn: any): void;
registerOnTouched(fn: any): void;
}