ZPT-JS reference - Configuration - maxFolderDictionaries

Syntax

maxFolderDictionaries ::= Integer
                

Description

The maxFolderDictionaries defines the maximum number of folder dictionaries to preload. It is an integer value.

Important! This configuration option must be used beside preload command. It the command is not preload it will be ignored.

For more details about folder dictionaries read the tutorial.

Examples

An example of ZPT-JS invokation using maxFolderDictionaries (reading a maximum of 5):

"use strict";

var zpt = require( 'zpt' );

var dictionary = {
    ...
};

zpt.run({
    command: 'preload',
    root: document.body,
    dictionary: dictionary,
    maxFolderDictionaries: 5,
    callback: function(){

        zpt.run();
        
        [your code here]
    }
});