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

NameTypeDescription
optionsObjectThis 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