clearCachedItemStyle();
The clearCachedItemStyle method clears item styles.
Clears styles saved to DOM view or to CanvasLabel.
To execute this example, the page must contain the TreeMap component named treeMap (see Example of Creating the TreeMap Component ):
// Get chart item with the index 3 var item = treeMap.getSceneItems()[3]; //Get item header, that is an object of the PP.Ui.CanvasLabel type
console.debug(item._label);
// Clear item styles item.clearCachedItemStyle();
// Get the item header again
console.debug(item._label);
As the result of the example execution, object of item header is shown in the console, after that header style and header itself are removed.
See also: