We have updated WebDataRocks EULA, effective as of April 18, 2024. Learn more about what's changed.
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

NameType
Description
optionsObject
This object defines the view and functionality available for users. Address the following article to learn how to define it: Options Object.

Examples

  1. Change the form of the pivot table to a classic one:
    webdatarocks.setOptions({
    	grid: {
    		type: "classic"
    	}
    });
    webdatarocks.refresh();
    

    The CodePen example with setOptions().

  2. Disable filtering:
    var options = webdatarocks.getOptions();
    options.grid.showFilter = false;
    webdatarocks.setOptions(options);
    webdatarocks.refresh();
    

See also