xDashApi¶
xDashApi provides features for building multi-dashboard applications.
Its main feature is to allow navigation between Chalk'it pages with parameter transfer. When landing at the target page, specified dataNodes of type Variable can have their initial values modified, as described below.
xDashApi currently runs with JavaScript-type dataNodes.
goToPage¶
In constrained dashboard mode, the method:
xDashApi.goToPage(pageNumber)
allows to show only the targed page. It is the main method for building multi-page app with custom navigation control.
viewPage¶
xDashApi.viewPage(pageUrl, inputVals, bNewTab)
Navigates to pageUrl, setting the values of the specified dataNodes in inputVals.
- pageUrl : target page URL
- inputVals : an array of structures of type
dsName should be of type string. dsVal can be of any JavaScript primitive type (number, string, boolean), array or JSON.
{"dsName": "dataNodeName", "dsVal" : "dataNodeValue"}
- bNewTab : open in new tab when true.
viewProject¶
Similar to view page, but applies for projects.
xDashApi.viewProject(projectUrl, inputVals, bNewTab)