searchbar.d.ts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { ChangeDetectorRef, ElementRef, EventEmitter, Injector, NgZone } from '@angular/core';
  2. import { ValueAccessor } from '@ionic/angular/common';
  3. import type { SearchbarInputEventDetail, SearchbarChangeEventDetail, Components } from '@ionic/core/components';
  4. import * as i0 from "@angular/core";
  5. export declare class IonSearchbar extends ValueAccessor {
  6. protected z: NgZone;
  7. protected el: HTMLElement;
  8. constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone, injector: Injector);
  9. handleIonInput(el: HTMLIonSearchbarElement): void;
  10. static ɵfac: i0.ɵɵFactoryDeclaration<IonSearchbar, never>;
  11. static ɵcmp: i0.ɵɵComponentDeclaration<IonSearchbar, "ion-searchbar", never, { "animated": { "alias": "animated"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "autocorrect": { "alias": "autocorrect"; "required": false; }; "cancelButtonIcon": { "alias": "cancelButtonIcon"; "required": false; }; "cancelButtonText": { "alias": "cancelButtonText"; "required": false; }; "clearIcon": { "alias": "clearIcon"; "required": false; }; "color": { "alias": "color"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "enterkeyhint": { "alias": "enterkeyhint"; "required": false; }; "inputmode": { "alias": "inputmode"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "name": { "alias": "name"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "searchIcon": { "alias": "searchIcon"; "required": false; }; "showCancelButton": { "alias": "showCancelButton"; "required": false; }; "showClearButton": { "alias": "showClearButton"; "required": false; }; "spellcheck": { "alias": "spellcheck"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, ["*"], true, never>;
  12. }
  13. export declare interface IonSearchbar extends Components.IonSearchbar {
  14. /**
  15. * Emitted when the `value` of the `ion-searchbar` element has changed.
  16. */
  17. ionInput: EventEmitter<CustomEvent<SearchbarInputEventDetail>>;
  18. /**
  19. * The `ionChange` event is fired for `<ion-searchbar>` elements when the user
  20. modifies the element's value. Unlike the `ionInput` event, the `ionChange`
  21. event is not necessarily fired for each alteration to an element's value.
  22. The `ionChange` event is fired when the value has been committed
  23. by the user. This can happen when the element loses focus or
  24. when the "Enter" key is pressed. `ionChange` can also fire
  25. when clicking the clear or cancel buttons.
  26. */
  27. ionChange: EventEmitter<CustomEvent<SearchbarChangeEventDetail>>;
  28. /**
  29. * Emitted when the cancel button is clicked.
  30. */
  31. ionCancel: EventEmitter<CustomEvent<void>>;
  32. /**
  33. * Emitted when the clear input button is clicked.
  34. */
  35. ionClear: EventEmitter<CustomEvent<void>>;
  36. /**
  37. * Emitted when the input loses focus.
  38. */
  39. ionBlur: EventEmitter<CustomEvent<void>>;
  40. /**
  41. * Emitted when the input has focus.
  42. */
  43. ionFocus: EventEmitter<CustomEvent<void>>;
  44. }