refreshTable (series, source);
series. Sets the array of series to be refreshed.
source. Sets a workbook, an instance of the Workbook class.
The refreshTable method refreshes the selected data range.
To execute the example, the page must contain the LanerBox component named lanerbox (see LanerBox Constructor), and the following code must be added in the handler that processes document opening event:
// Create a button var btnRefreshTable = new PP.Ui.Button({ ParentNode: "params", //DOM parent node Content: "RefreshTable", //text Click: PP.Delegate(function(sender, args){ //click handler console.log("Get selected cell range"); var series = wbk.getSelectedSeries(); console.log(series); console.log("Refresh selected data range"); lanerbox.refreshTable(series, wbk); }, this) });
After executing the example the RefreshTable button is added in the HTML page. Clicking this button refreshes selected data range and displays the following message in the browser console:
Get selected data range
[Object]
Refresh selected data range
See also: