togglebutton.d.ts 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. import { EventEmitter, AfterViewInit, ElementRef } from '@angular/core';
  2. import { ControlValueAccessor } from '@angular/forms';
  3. export declare const TOGGLEBUTTON_VALUE_ACCESSOR: any;
  4. export declare class ToggleButton implements ControlValueAccessor, AfterViewInit {
  5. onLabel: string;
  6. offLabel: string;
  7. onIcon: string;
  8. offIcon: string;
  9. disabled: boolean;
  10. style: any;
  11. styleClass: string;
  12. inputId: string;
  13. tabindex: number;
  14. iconPos: string;
  15. onChange: EventEmitter<any>;
  16. checkboxViewChild: ElementRef;
  17. checkbox: HTMLInputElement;
  18. checked: boolean;
  19. focus: boolean;
  20. onModelChange: Function;
  21. onModelTouched: Function;
  22. ngAfterViewInit(): void;
  23. toggle(event: Event): void;
  24. onFocus(): void;
  25. onBlur(): void;
  26. writeValue(value: any): void;
  27. registerOnChange(fn: Function): void;
  28. registerOnTouched(fn: Function): void;
  29. setDisabledState(val: boolean): void;
  30. readonly hasOnLabel: boolean;
  31. readonly hasOffLabel: boolean;
  32. }
  33. export declare class ToggleButtonModule {
  34. }