Early Access: The content on this website is provided for informational purposes only in connection with pre-General Availability Qlik Products.
All content is subject to change and is provided without warranty.
Skip to main content Skip to complementary content

QHeader

Information noteSTABLE.

This API is reliable and breaking changes are unlikely.

Class

QHeader()

Wrapper around a hypercube header cell.

Version history

Version history
Version state Details
Introduced 2.1
Updated 2.2

Properties

qFallbackTitle

Type: String

Column title.

qSortIndicator

Type: String

Can be:

  • A: ascending
  • D: descending

isOrderedBy

Type: Boolean

True indicates if this is the first column for sorting,

qReverseSort

Type: Boolean

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

col

Type: Number

Column number.

qCardinal

Type: Number

Optional.

Number of different values. Only used for dimensions.

qStateCounts

Type: Object

Optional.

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

field

Type: Field

Optional.

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

qMin

Type: Number

Optional.

Minimum value. Only used for measures.

qMax

Type: Number

Optional.

Maximum value. Only used for measures.

errorCode

Type: Number

Optional.

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

Introduced in version 2.2.

errorMessage

Type: String

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 page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!