UNPKG

print-js

Version:

A tiny javascript library to help printing from the web.

38 lines (33 loc) 948 B
import 'print-js/dist/print'; declare type PrintTypes = 'pdf' | 'html' | 'image' | 'json'; export interface Configuration { printable: any; fallbackPrintable?: string; type?: string; documentTitle?: string; header?: any; headerStyle?: string; maxWidth?: number; font?: string; font_size?: string; honorMarginPadding?: boolean; honorColor?: boolean; targetStyle?: string | string[]; targetStyles?: string | string[]; properties?: any; gridHeaderStyle?: string; gridStyle?: string; showModal?: boolean; onLoadingStart?: () => void; onLoadingEnd?: () => void; modalMessage?: string; frameId?: string; ignoreElements?: string | string[]; imageStyle?: string; repeatTableHeader?: boolean; css?: string | string[]; style?: string; scanStyles?: boolean; } declare var printJS: (params: string | Configuration) => void; export default printJS;