getImagePath(path: String);
path. String to add after the returned value. Optional parameter.
The getImagePath method returns path to the icons folder.
The method returns a value of the String type.
Executing the example requires that an express report is opened. The scenario specified below must be started in the browser console.
Specify a new path to the icons folder, URL and name of the current page, and also the list of available languages:
console.log("path to icons folder: " + PP.App.getImagePath()); // Get current unit var activeModule = PP.App.getActiveModule("Olap"); // Get name of the page with loaded unit var moduleUrl = PP.App.getModuleUrl(activeModule.Data); console.log("Page with the current unit: " + moduleUrl);
After executing the example the browser console displays new path to the icons folder and name of the current page:
Path to icons folder: ../build/img/
Page with the current unit: olap.html
See also: