Get Free Trial
API reference
Table of contents

setOptions

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.

Parameters

  • optionsOptionsObject. It contains the list of component’s options.

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