@iotize/ionic
Version:
Iotize specific building blocks on top of @ionic/angular.
20 lines (19 loc) • 1.12 kB
TypeScript
import { EventEmitter } from '@angular/core';
import { AlertController, Platform } from '@ionic/angular';
import { ExportDataService } from './export-data.service';
import * as i0 from "@angular/core";
export declare class ExportDataDirective {
alertController: AlertController;
platform: Platform;
private dataToExportService;
constructor(alertController: AlertController, platform: Platform, dataToExportService: ExportDataService);
exportDataError: EventEmitter<Error>;
exportedFileName?: string;
dataToExport?: any[] | (() => any[]);
format?: 'csv' | 'json';
onClickEvent(): Promise<void>;
private exportToJson;
private exportToCsv;
static ɵfac: i0.ɵɵFactoryDeclaration<ExportDataDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ExportDataDirective, "[tapExportData]", never, { "exportedFileName": { "alias": "exportedFileName"; "required": false; }; "dataToExport": { "alias": "dataToExport"; "required": false; }; "format": { "alias": "format"; "required": false; }; }, { "exportDataError": "exportDataError"; }, never, never, false, never>;
}