UNPKG

@ionic/angular

Version:

Angular specific wrappers for @ionic/core

29 lines (28 loc) 1.35 kB
import { ChangeDetectorRef, ElementRef, NgZone, EventEmitter } from '@angular/core'; import type { Components } from '@ionic/core/components'; import type { IonImgCustomEvent } from '@ionic/core/components'; import * as i0 from "@angular/core"; export declare class IonImg { protected z: NgZone; protected el: HTMLIonImgElement; ionImgWillLoad: EventEmitter<IonImgCustomEvent<void>>; ionImgDidLoad: EventEmitter<IonImgCustomEvent<void>>; ionError: EventEmitter<IonImgCustomEvent<void>>; constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone); static ɵfac: i0.ɵɵFactoryDeclaration<IonImg, never>; static ɵcmp: i0.ɵɵComponentDeclaration<IonImg, "ion-img", never, { "alt": { "alias": "alt"; "required": false; }; "src": { "alias": "src"; "required": false; }; }, { "ionImgWillLoad": "ionImgWillLoad"; "ionImgDidLoad": "ionImgDidLoad"; "ionError": "ionError"; }, never, ["*"], true, never>; } export declare interface IonImg extends Components.IonImg { /** * Emitted when the img src has been set */ ionImgWillLoad: EventEmitter<IonImgCustomEvent<void>>; /** * Emitted when the image has finished loading */ ionImgDidLoad: EventEmitter<IonImgCustomEvent<void>>; /** * Emitted when the img fails to load */ ionError: EventEmitter<IonImgCustomEvent<void>>; }