UNPKG

primeng

Version:

[![npm version](https://badge.fury.io/js/primeng.svg)](https://badge.fury.io/js/primeng) [![npm downloads](https://img.shields.io/npm/dm/primeng.svg)](https://www.npmjs.com/package/primeng) [![Actions CI](https://github.com/primefaces/primeng/workflows/No

57 lines (56 loc) 2.56 kB
import { ChangeDetectorRef, ElementRef, EventEmitter, QueryList, TemplateRef } from '@angular/core'; import { ControlValueAccessor, FormControl } from '@angular/forms'; import * as i0 from "@angular/core"; import * as i1 from "@angular/common"; import * as i2 from "primeng/icons/check"; import * as i3 from "primeng/api"; export declare const CHECKBOX_VALUE_ACCESSOR: any; export declare class Checkbox implements ControlValueAccessor { cd: ChangeDetectorRef; value: any; name: string; disabled: boolean; binary: boolean; label: string; ariaLabelledBy: string; ariaLabel: string; tabindex: number; inputId: string; style: any; styleClass: string; labelStyleClass: string; formControl: FormControl; checkboxIcon: string; readonly: boolean; required: boolean; trueValue: any; falseValue: any; inputViewChild: ElementRef; onChange: EventEmitter<any>; templates: QueryList<any>; checkboxIconTemplate: TemplateRef<any>; model: any; onModelChange: Function; onModelTouched: Function; focused: boolean; constructor(cd: ChangeDetectorRef); ngAfterContentInit(): void; onClick(event: any, checkbox: any, focus: boolean): void; updateModel(event: any): void; handleChange(event: any): void; onFocus(): void; onBlur(): void; focus(): void; writeValue(model: any): void; registerOnChange(fn: Function): void; registerOnTouched(fn: Function): void; setDisabledState(val: boolean): void; checked(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration<Checkbox, never>; static ɵcmp: i0.ɵɵComponentDeclaration<Checkbox, "p-checkbox", never, { "value": "value"; "name": "name"; "disabled": "disabled"; "binary": "binary"; "label": "label"; "ariaLabelledBy": "ariaLabelledBy"; "ariaLabel": "ariaLabel"; "tabindex": "tabindex"; "inputId": "inputId"; "style": "style"; "styleClass": "styleClass"; "labelStyleClass": "labelStyleClass"; "formControl": "formControl"; "checkboxIcon": "checkboxIcon"; "readonly": "readonly"; "required": "required"; "trueValue": "trueValue"; "falseValue": "falseValue"; }, { "onChange": "onChange"; }, ["templates"], never, false, never>; } export declare class CheckboxModule { static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<CheckboxModule, [typeof Checkbox], [typeof i1.CommonModule, typeof i2.CheckIcon], [typeof Checkbox, typeof i3.SharedModule]>; static ɵinj: i0.ɵɵInjectorDeclaration<CheckboxModule>; }