Need a special offer?Find out if your project fits.
+
All documentation
API reference
  • API Reference for older versions
  • setOptions

    setOptions(options: OptionsObject)

    [starting from version: 1.6]

    Sets the component's options.

    Use the refresh() API call after to redraw the component and see changes.

    Parameters

    Parameter/Type Description
    options
    OptionsObject
    Contains the list of component's options and their new values.
    Note that changes to the following options take effect only after reloading the report (e.g., using setReport()):

    Examples

    1) How to set grid title:

    flexmonster.setOptions({
      grid: {
        title: "Table One"
      }
    });
    flexmonster.refresh();

    Check the example on JSFiddle.

    2) How to turn off totals:

    var options = flexmonster.getOptions();
    options.grid.showTotals = "off";
    flexmonster.setOptions(options);
    flexmonster.refresh();

    Try on JSFiddle.

    3) How to set a chart title:

    flexmonster.setOptions({
      chart: {
        title: "Chart One"
      }
    });
    flexmonster.refresh();

    See also

    OptionsObject
    getOptions
    refresh
    Options tutorial