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.
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. |
webdatarocks.setOptions({ grid: { type: "classic" } }); webdatarocks.refresh();
The CodePen example with setOptions()
.
var options = webdatarocks.getOptions(); options.grid.showFilter = false; webdatarocks.setOptions(options); webdatarocks.refresh();