UNPKG

primeng

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/primeng.svg)](https://badge.fury.io/js/primeng) [![npm downloads](https://img.shields.io/npm/dm/primeng.sv

63 lines (62 loc) 2.78 kB
import { ElementRef, EventEmitter, ChangeDetectorRef, Injector, OnInit, OnDestroy } from '@angular/core'; import { ControlValueAccessor, NgControl } from '@angular/forms'; import * as i0 from "@angular/core"; import * as i1 from "@angular/common"; export declare const RADIO_VALUE_ACCESSOR: any; export declare class RadioControlRegistry { private accessors; add(control: NgControl, accessor: RadioButton): void; remove(accessor: RadioButton): void; select(accessor: RadioButton): void; private isSameGroup; static ɵfac: i0.ɵɵFactoryDeclaration<RadioControlRegistry, never>; static ɵprov: i0.ɵɵInjectableDeclaration<RadioControlRegistry>; } export declare class RadioButton implements ControlValueAccessor, OnInit, OnDestroy { cd: ChangeDetectorRef; private injector; private registry; value: any; formControlName: string; name: string; disabled: boolean; label: string; tabindex: number; inputId: string; ariaLabelledBy: string; ariaLabel: string; style: any; styleClass: string; labelStyleClass: string; onClick: EventEmitter<any>; onFocus: EventEmitter<any>; onBlur: EventEmitter<any>; inputViewChild: ElementRef; onModelChange: Function; onModelTouched: Function; checked: boolean; focused: boolean; control: NgControl; constructor(cd: ChangeDetectorRef, injector: Injector, registry: RadioControlRegistry); ngOnInit(): void; handleClick(event: any, radioButton: any, focus: any): void; select(event: any): void; writeValue(value: any): void; registerOnChange(fn: Function): void; registerOnTouched(fn: Function): void; setDisabledState(val: boolean): void; onInputFocus(event: any): void; onInputBlur(event: any): void; onChange(event: any): void; focus(): void; ngOnDestroy(): void; private checkName; private throwNameError; static ɵfac: i0.ɵɵFactoryDeclaration<RadioButton, never>; static ɵcmp: i0.ɵɵComponentDeclaration<RadioButton, "p-radioButton", never, { "value": "value"; "formControlName": "formControlName"; "name": "name"; "disabled": "disabled"; "label": "label"; "tabindex": "tabindex"; "inputId": "inputId"; "ariaLabelledBy": "ariaLabelledBy"; "ariaLabel": "ariaLabel"; "style": "style"; "styleClass": "styleClass"; "labelStyleClass": "labelStyleClass"; }, { "onClick": "onClick"; "onFocus": "onFocus"; "onBlur": "onBlur"; }, never, never>; } export declare class RadioButtonModule { static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<RadioButtonModule, [typeof RadioButton], [typeof i1.CommonModule], [typeof RadioButton]>; static ɵinj: i0.ɵɵInjectorDeclaration<RadioButtonModule>; }