Documentation menu
setOptions
setOptions(options:Options Object)
This method is used for setting the options
object in the report.
To redraw the component and see the applied changes, use a refresh() API call.
Parameters
Name | Type | Description |
---|---|---|
options | Object | This object defines the view and functionality available for users. Address the following article to learn how to define it: Options Object. |
Examples
- Change the form of the pivot table to a classic one:
webdatarocks.setOptions({
grid: {
type: "classic"
}
});
webdatarocks.refresh();The CodePen example with
setOptions()
. - Disable filtering:
var options = webdatarocks.getOptions();
options.grid.showFilter = false;
webdatarocks.setOptions(options);
webdatarocks.refresh();