Menu
Download Free Trial
Table of contents

setOptions

setOptions(options:Options Object)

[starting from version: 1.6]

Sets the component’s options.

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

Parameters

Options Object – the object which contains the list of component’s options.

Examples

How to set chart title:

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

How to set grid title:

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

How to turn off totals:

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

See also

Options Object
getOptions
refresh