Loading Scripts in Part to Minify Project
Our sample projects and report templates can help you learn the basics of working with our products.Dashboards.PHP is modular: you can load only the script parts your page needs to keep the download small.
Loading the template. Create the dashboard, load the template from the demonstrated source, and pass it to the next rendering, viewing, or export step.
Loading the template. Create the dashboard, 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->usePacked = true;
$designer->process();The javascript object exposes flags for each optional module; turning off the ones you do not use, with usePacked, minimizes the JavaScript sent to the browser.