ExporterBase

Base class for all exporters

Configs

10

Common

listenersEvents

Other

keepPathName: Boolean= true

When true links are converted to absolute by combining current window location (with replaced origin) with resource link. When false links are converted by combining new origin with resource link (for angular)

A function that determines when to capture the HTML for exported rows. When set to null (the default), the export happens immediately without waiting. The function receives the export configuration as a parameter. The rendering process works in chunks, using the same approach as the Grid component - displaying visible rows with an additional buffer.

Examples:

// simple timeout
new Grid({
    features : {
        pdfExport : {
            rowReadyCondition : async () => await new Promise(resolve => setTimeout(resolve, 100))
        }
    }
});

// waiting for a condition
new Grid({
    features : {
        pdfExport : {
            rowReadyCondition : async () => await promiseWithCondition
        }
    }
});
Returns: void
translateURLsToAbsolute: Boolean | String= true

true to replace all linked CSS files URLs to absolute before passing HTML to the server. When passing a string the current origin of the CSS files URLS will be replaced by the passed origin.

For example: css files pointing to /app.css will be translated from current origin to {translateURLsToAbsolute}/app.css

Misc

localeClassLocalizable
localizableLocalizable

Properties

8

Other

A function that determines when to capture the HTML for exported rows. When set to null (the default), the export happens immediately without waiting. The function receives the export configuration as a parameter. The rendering process works in chunks, using the same approach as the Grid component - displaying visible rows with an additional buffer.

Examples:

// simple timeout
new Grid({
    features : {
        pdfExport : {
            rowReadyCondition : async () => await new Promise(resolve => setTimeout(resolve, 100))
        }
    }
});

// waiting for a condition
new Grid({
    features : {
        pdfExport : {
            rowReadyCondition : async () => await promiseWithCondition
        }
    }
});
Returns: void
stylesheets: String[]readonly

Returns all style-related tags: <style> and <link rel="stylesheet">

Class hierarchy

isEventsEvents
isLocalizableLocalizable

Misc

localeHelperLocalizable
localeManagerLocalizable

Functions

15

Other

This method accepts all stylesheets (link and style tags) which are supposed to be put on the page. Use this hook method to filter or modify them.

new Grid({
    features: {
        pdfExport: {
            // filter out inline styles and bootstrap.css
            filterStyles: styles => styles.filter(item => !/(link|bootstrap.css)/.test(item))
        }
    }
});
ParameterTypeDescription
stylesString[]
Returns: String[] -

List of stylesheets to put on the exported page

Template of an extracted page.

ParameterTypeDescription
dataObject

Data for the page template

Returns: String
LstaticLocalizable
onEvents
relayAllEvents
triggerEvents
unEvents

Misc

optionalLstaticLocalizable

Events

3

Event handlers

3

Typedefs

1