checkbox.d.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { EventEmitter, ChangeDetectorRef } from '@angular/core';
  2. import { ControlValueAccessor, FormControl } from '@angular/forms';
  3. export declare const CHECKBOX_VALUE_ACCESSOR: any;
  4. export declare class Checkbox implements ControlValueAccessor {
  5. private cd;
  6. value: any;
  7. name: string;
  8. disabled: boolean;
  9. binary: string;
  10. label: string;
  11. tabindex: number;
  12. inputId: string;
  13. style: any;
  14. styleClass: string;
  15. labelStyleClass: string;
  16. formControl: FormControl;
  17. checkboxIcon: string;
  18. readonly: boolean;
  19. onChange: EventEmitter<any>;
  20. model: any;
  21. onModelChange: Function;
  22. onModelTouched: Function;
  23. focused: boolean;
  24. checked: boolean;
  25. constructor(cd: ChangeDetectorRef);
  26. onClick(event: any, checkbox: any, focus: boolean): void;
  27. updateModel(): void;
  28. handleChange(event: any): void;
  29. isChecked(): boolean;
  30. removeValue(): void;
  31. addValue(): void;
  32. onFocus(event: any): void;
  33. onBlur(event: any): void;
  34. writeValue(model: any): void;
  35. registerOnChange(fn: Function): void;
  36. registerOnTouched(fn: Function): void;
  37. setDisabledState(val: boolean): void;
  38. }
  39. export declare class CheckboxModule {
  40. }