refresh()
[starting from version: 1.6]
Redraws the component.
This API call allows you to control redrawing of the component when you use the following API calls:
addCondition()
removeAllConditions()
removeCondition()
setFormat()
setOptions()
To turn off totals and redraw the component to see changes, use the following API calls:
let options = pivot.getOptions();
options.grid.showTotals = "off";
pivot.setOptions(options);
pivot.refresh();
Try on JSFiddle.
addCondition
removeAllConditions
removeCondition
setFormat
setOptions