DimTreeMode: String;
The DimTreeMode property specifies data view that will use the title.
Use JSON or the setDimTreeMode method to set the property value, and the getDimTreeMode method to get the property value.
Executing the example requires that the HTML page contains the TitleBox component named titleBox (see Example of Creating the EaxTitleMaster Component). Determine the data view for which the title is intended:
var dimTreeMode = title.getDimTreeMode(); switch (dimTreeMode) { case "Grid": console.log("This is the table title"); break; case "Chart": console.log("This is the chart title"); break; case "BubbleChart": console.log("This is the bubble chart title"); break; default: console.log("This is title for unknown data view"); };
After executing the example the browser console displays a notification that the title is intended for a chart.
See also: