QHeader

Note: STABLE.
This API is reliable and breaking changes are unlikely.

QHeader()

Wrapper around a hypercube header cell.

Version history

Introduced 2.1
Updated 2.2

Properties

Name Type Description
qFallbackTitle String

Column title.

qSortIndicator String

Can be:

  • A: ascending
  • D: descending
isOrderedBy Boolean

True indicates if this is the first column for sorting,

qReverseSort Boolean

True indicates if the sort order is reversed for this column.

col Number

Column number.

qCardinal Number

Optional.

Number of different values. Only used for dimensions.

qStateCounts Object

Optional.

Object with number of values in different states. Only used for dimensions.

field Field

Optional.

Field object with methods to manipulate the underlying field. Only used for dimensions.

qMin Number

Optional.

Minimum value. Only used for measures.

qMax Number

Optional.

Maximum value. Only used for measures.

errorCode Number

Optional.

Error code for this column. Only if column has an error.

Introduced in version 2.2.

errorMessage Number

Error message for this column. Only if column has an error.

Introduced in version 2.2.

Example

<th ng-repeat="head in data.headers" class="header" ng-click="head.orderBy()">
  {{head.qFallbackTitle}}
       <i ng-if="head.isOrderedBy" ng-click="head.reverseOrder()"
           ng-class="{ 'icon-triangle-top': head.qSortIndicator === 'A',
			'icon-triangle-bottom': head.qSortIndicator === 'D'}">
       </i>
</th>

Did this information help you?

Thanks for letting us know. Is there anything you'd like to tell us about this topic?

Can you tell us why it did not help you and how we can improve it?