Accessing custom properties from JavaScript
I have added a custom propery to the site and would like to use it in JavaScript code of a custom library of its HTML Viewer.
How can I get the property value in JavaScript?
The documentation states: " Custom properties are arbitrary name/value pairs that are configured in the Site.xml file. They provide a means of passing values from the server to the client application. "
So, there should be a way of accessing the property by the client application, but it is not documented.
0
-
I have already found a solution:
- viewer.site.properties
- The viewer variable has to made global in index.html of the HTML viewer.0
Please sign in to leave a comment.
Comments
1 comment