updateViewAsMenu ();
The updateViewAsMenu method refreshed the drop-down menu for selecting transformations to be applied.
A drop-down menu of applied transformations is available in the Primary panel of the Series side panel tab.
To execute the example, the page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component), and also add the following code in the handler, that processes document opening event:
var mainSeriesPanel = workbookBox.getPropertyBarView().getMainSeriesPanel(); var updateViewAsMenuButt = new PP.Ui.Button({ ParentNode: document.body, //DOM parent node Content: "Refresh a list of applied transformations", //Text Click: PP.Delegate(onClickUpdateViewAsMenu) }); function onClickUpdateViewAsMenu() { var selseries = wbk.getSelectedOrPinnedSeries(); selseries[0].displayParams.inversion = "Diff"; selseries[0].displayParams.inversionLag = "EndOfPrecedingYear"; //Refresh the Apply Transformation drop-down list mainSeriesPanel.updateViewAsMenu(); }
After executing the example a button named Refresh List of Applied Transformations is placed in the HTML page. To execute the example, open the Primary panel in the Series tab and click the Refresh List of Applied Transformations button. Transformation value will be refreshed.
See also: