This example shows how to minify project. First, you need to add the Stimulsoft libraries:
<?php
require_once 'vendor/autoload.php';
?>

Next, you should define JavaScript modules required for the component to work. Additionally, you can use a packaged version of scripts to speed up loading and save traffic. All code should be added in the <head> block of the HTML page:
<?php
$js = new \Stimulsoft\StiJavaScript(\Stimulsoft\StiComponentType::Designer);

$js->options->reports = false;
$js->options->blocklyEditor = false;
$js->options->reportsChart = true;
$js->options->reportsExport = true;
$js->options->reportsImportXlsx = false;
$js->options->reportsMaps = false;

$js->usePacked = true;

$js->renderHtml();
?>

Now you can use the code to deploy the dashboard engine and the viewer or designer component. The code will be exactly the same as when using a full set of scripts.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.