setOptions(options: OptionsObject)
[starting from version: 1.6]
Sets the component's options.
Use refresh()
API call after to redraw the component and see changes.
Parameter/Type | Description |
---|---|
options OptionsObject |
Contains the list of component's options. |
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();