Get Free Trial
API reference
Table of contents

getColumnsAsync

getColumnsAsync(): Promise<Object []>

[starting from version: 2.9]

Returns a Promise object that resolves to an array of hierarchies selected for columns in the slice. See the array’s structure in getColumns.

Example

flexmonster.getColumnsAsync().then(columns => {
	columns.forEach(
		item => console.log(item);
	);
}); 

/* getColumnsAsync method returns array of objects 
[ 
	{caption: "Country", uniqueName: "Country", sort: "asc", type: "string"}, 
	{caption: "Color", uniqueName: "Color", sort: "asc", type: "string"} 
] 
*/

See an example on JSFiddle.

See also

getColumns
getRowsAsync
getReportFiltersAsync
getAllHierarchiesAsync
getAllMeasuresAsync
getMeasuresAsync