Interface: ResultItemAPI

ResultItemAPI

API class that is used to work with a result data item.

Example

queryResult.getResultItemList()[index]

Methods

clearDecorations()

Clear decorations for the result item

getDataItemList() → {Array.<DataItemAPI>}

Gets column information in the result data item.

Returns:

Array of DataItemAPI DataItemAPI

Type
Array.<DataItemAPI>

getDecorations() → {Object}

Get decorations for the result item

Returns:

Object map containing decorations in name/value pairs. Values are either a primitive value or an object representing the decoration.

Type
Object
Example
{
		"marker": 60.21043771043771,
		"tooltip": "The average value of Audience Score % is 60.21.",
		"markerCaption": "Average: 60.21"
	}

getRowCount() → {Number}

Gets the row count of the corresponding column of the result data item.

Returns:

Number of rows in the corresponding column

Type
Number

getValue(rowIndex) → {Array.<ResultDataValue>}

Gets the value object at the specified rowIndex.

Parameters:
Name Type Description
rowIndex Number

Index to access the items list.

Returns:

Value of object array ResultDataValue

Type
Array.<ResultDataValue>
Example
[{
	value: 'dataset_csv.Product_line->[Camping Equipment]',
	label: 'Camping Equipment'
}]