getOptions(): OptionsObject
[starting from version: 1.6]
Returns OptionsObject with component's options.
How to turn off totals:
let options = pivot.getOptions();
options.grid.showTotals = "off";
pivot.setOptions(options);
pivot.refresh();
Try on JSFiddle.