Loading Scripts in Part to Minify Project
Our sample projects and report templates can help you learn the basics of working with our products.Load the report template in PHP and pass it to the next viewing, rendering, or export operation.
Loading the template. Create the report, load the template from the demonstrated source, and pass it to the next rendering, viewing, or export step.
The
Loading the template. Create the report, load the template from the demonstrated source, and pass it to the next rendering, viewing, or export step.
$designer = new StiDesigner();
$designer->javascript->blocklyEditor = false;
$designer->javascript->reportsChart = true;
$designer->javascript->reportsExport = true;
$designer->javascript->reportsImportXlsx = false;
$designer->javascript->reportsMaps = false;
$designer->javascript->usePacked = true;
$designer->process();javascript->blocklyEditor / reportsChart / reportsMaps …— flags that enable or disable individual script modules, so only what you use is loaded.javascript->usePacked— serves the minified (packed) scripts to further reduce the download size.
The
javascript object exposes flags for each optional module (charts, export, maps, the Blockly editor and more); turning off the ones you do not use, together with usePacked, minimizes the JavaScript sent to the browser.