SinglePageUnscaledExporter

A single page exporter. Used by the PdfExport feature to export to single page. Content is exported with dimensions required to fit all requested rows and columns. This allows generating PDF page not constrained by the standard paper formats.

You do not need to use this class directly.

Extending exporter

class MySinglePageExporter extends SinglePageUnscaledExporter {
    // type is required for exporter
    static get type() {
        return 'mysinglepageexporter';
    }

    get stylesheets() {
        const stylesheets = super.stylesheets;

        stylesheets.forEach(styleNodeOrLinkTag => doSmth(styleNodeOrLinkTag))

        return stylesheets;
    }
}

const gantt = new Gantt({
    features : {
        pdfExport : {
            // this export feature is configured with only one exporter
            exporters : [MySinglePageExporter]
        }
    }
});

// run export with the new exporter
gantt.features.pdfExport.export({ exporter : 'mysinglepageexporter' });

Configs

11

Common

listenersEvents

Misc

localeClassLocalizable
localizableLocalizable

Other

centerContentHorizontallySinglePageExporter
keepPathNameExporterBase
rowReadyConditionExporterBase

Properties

12

Class hierarchy

isSinglePageUnscaledExporter: Boolean= truereadonly
Identifies an object as an instance of SinglePageUnscaledExporter class, or subclass thereof.
isSinglePageUnscaledExporter: Boolean= truereadonlystatic
Identifies an object as an instance of SinglePageUnscaledExporter class, or subclass thereof.
isEventsEvents
isExporterExporter
isLocalizableLocalizable
isSinglePageExporterSinglePageExporter

Misc

localeHelperLocalizable
localeManagerLocalizable

Other

rowReadyConditionExporterBase
stylesheetsExporterBase

Functions

15

Misc

optionalLstaticLocalizable

Other

filterStylesExporterBase
LstaticLocalizable
onEvents
pageTplExporterBase
relayAllEvents
triggerEvents
unEvents

Events

3

Event handlers

3

Typedefs

1