checkbox.d.ts 1.9 KB

123456789101112131415161718192021222324252627282930
  1. import { ChangeDetectorRef, ElementRef, EventEmitter, Injector, NgZone } from '@angular/core';
  2. import { ValueAccessor } from '@ionic/angular/common';
  3. import type { CheckboxChangeEventDetail, Components } from '@ionic/core/components';
  4. import * as i0 from "@angular/core";
  5. export declare class IonCheckbox extends ValueAccessor {
  6. protected z: NgZone;
  7. protected el: HTMLElement;
  8. constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone, injector: Injector);
  9. writeValue(value: boolean): void;
  10. handleIonChange(el: HTMLIonCheckboxElement | HTMLIonToggleElement): void;
  11. static ɵfac: i0.ɵɵFactoryDeclaration<IonCheckbox, never>;
  12. static ɵcmp: i0.ɵɵComponentDeclaration<IonCheckbox, "ion-checkbox", never, { "checked": { "alias": "checked"; "required": false; }; "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "errorText": { "alias": "errorText"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "justify": { "alias": "justify"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, ["*"], true, never>;
  13. }
  14. export declare interface IonCheckbox extends Components.IonCheckbox {
  15. /**
  16. * Emitted when the checked property has changed
  17. as a result of a user action such as a click.
  18. This event will not emit when programmatically
  19. setting the checked property.
  20. */
  21. ionChange: EventEmitter<CustomEvent<CheckboxChangeEventDetail>>;
  22. /**
  23. * Emitted when the checkbox has focus.
  24. */
  25. ionFocus: EventEmitter<CustomEvent<void>>;
  26. /**
  27. * Emitted when the checkbox loses focus.
  28. */
  29. ionBlur: EventEmitter<CustomEvent<void>>;
  30. }