getImagePath();
The getImagePath method returns path to icons folder.
The method returns a value of the String type.
To execute the example, the HTML page must contain the MetabaseDialogBase component named metabaseDialogBase (see. Example of creating the MetabaseDialogBase component). Specify path to dialog box icons folder and repository name:
// Get path to the folder with a dialog box icon var imagePath = metabaseDialogBase.getImagePath(); console.log("path to icons folder: " + imagePath); // Get parent repository object var parentMbObject = metabaseDialogBase.getParentMbObject(); console.log("Repository name: " + parentMbObject.getName());
After executing the example the browser console displays path to folder that contains dialog box icons and repository name:
Path to the icons folder: ../build/img/
Repository name: prognozplatform7
See also: