UNPKG

@vismaux/ngx-nordic-cool

Version:
45 lines (44 loc) 1.82 kB
import { EventEmitter, ChangeDetectorRef, DoCheck } from '@angular/core'; import { NcRadioGroupComponent } from './radio-group/radio-group.component'; import * as i0 from "@angular/core"; export declare class NcRadioComponent implements DoCheck { private cdRef; private radioGroup; private _uniqueId; private _name; private _inputId; private _checked; private _disabled; private _groupDisabled; /** The value attribute of the native input element */ value: string; /** Name of the radio button group. All radio buttons inside this group will use this name. */ get name(): string; set name(value: string); /** The unique ID for the radio button. */ get id(): string; set id(value: string); /** Whether this radio button is checked. */ get checked(): boolean; set checked(value: boolean); /** Whether this radio button is disabled. */ get disabled(): boolean; set disabled(value: boolean); /** * Event emitted when the group value changes. * Change events are only emitted when the value changes due to user interaction with * a radio button (the same behavior as `<input type="radio">`). */ readonly change: EventEmitter<string>; /** @ignore */ get inputId(): string; constructor(cdRef: ChangeDetectorRef, radioGroup: NcRadioGroupComponent); /** @ignore */ ngDoCheck(): void; /** @ignore */ onInputChange(event: Event): void; /** @ignore */ onBlur(): void; static ɵfac: i0.ɵɵFactoryDeclaration<NcRadioComponent, [null, { optional: true; }]>; static ɵcmp: i0.ɵɵComponentDeclaration<NcRadioComponent, "nc-radio", never, { "value": "value"; "name": "name"; "id": "id"; "checked": "checked"; "disabled": "disabled"; }, { "change": "change"; }, never, ["*"]>; }