BranchItemsTooltipStyle: PP.Ui.CanvasTooltip;
The BranchTooltipStyle property determines style of tooltip displayed for tree map branches.
Use JSON or the setBranchTooltipStyle(value) method to set the property value, and the getBranchTooltipStyle() method to get the property value.
To execute this example, the page must contain the TreeMap component named treeMap (see. Example of Creating the TreeMap Component). Change tree map branch tooltip:
// Get current branch tooltip style style = treeMap.getBranchItemsTooltipStyle(); // Create a new style nStyle = new PP.Ui.CanvasTooltip(style); nStyle.setMaskText("{%Name} branch"); // Apply new branch style treeMap.setBranchItemsTooltipStyle(nStyle); treeMap.refresh();
After executing the example tree branches get alternative tooltip text.
To execute the example, the HTML page must contain the ExpressBox component named expressBox (see. Example of Creating the ExpressBox Component) and a tree map visualizer is selected. Change tree map branch tooltip:
// Get the TreeMap component dataView=expressBox.getDataView(); mapView = dataView.getTreeMapView(); treeMap = mapView.getInstance(); // Get current branch tooltip style style = treeMap.getBranchItemsTooltipStyle(); // Create a new style nStyle = new PP.Ui.CanvasTooltip(style); nStyle.setMaskText("{%Name} branch"); // Apply new style for branches treeMap.setBranchItemsTooltipStyle(nStyle); treeMap.refresh();
After executing the example tree branches get alternative tooltip text.
See also: