ng-ptplibraries
Version:
31 lines (30 loc) • 1.06 kB
TypeScript
import { OnInit, EventEmitter, SimpleChanges } from '@angular/core';
import { IDocumentsAttached } from '../../interfaces/IConfig';
export declare class PTPPDFAttachmentComponent implements OnInit {
/**
* Attachments
*/
pdfAttachment: any;
isPdfAttachmentBase64: boolean;
attachmentID: number;
attachments: IDocumentsAttached[];
getAttachments: EventEmitter<any>;
/**
* If view mode is true, attachments is required
* */
viewOnly: boolean;
PDFStoBeAttached: IDocumentsAttached[];
constructor();
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
addAttachment(fileInput: any): void;
removeAttachment(index: number): void;
checkIfIE(base64: string): boolean;
checkBrowser(): boolean;
getBase64(file: any): Promise<{}>;
previewAttachment(base64: string): void;
showAttachmentUrl(): string;
showAttachmentBase64(): any;
toBlob(b64Data: any, contentType?: string, sliceSize?: number): Blob;
getPDFSAttached(): void;
}