Hi,
We would like to change the icon on the pivot table toolbar dynamically. We create a custom icon as follows:
args.customToolbar.splice(0, 0, {
prefixIcon: 'e-pivotview-expand',
tooltipText: 'Expand/Collapse',
id: 'expandCollapse',
click: this.toolbarClicked.bind(this),
});
When clicked, we change the prefixIcon as follows:
args.item.properties.prefixIcon = "
e-pivotview-expand
";
The icon does not change. We tried calling
pivotObj.refresh( ) or pivotObj.dataBind( ) without any results.
Any suggestion?