QHeader
new QRow()
Wrapper around a HyperCube header cell.
- Since:
-
- 2.1
Properties
Name | Type | Description |
---|---|---|
qFallbackTitle | String |
Column title. |
qSortIndicator | String |
Can be:
|
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. |
Example
<th ng-repeat="head in data.headers" class="header" qva-activate="head.orderBy()">
{{head.qFallbackTitle}}
<i ng-if="head.isOrderedBy" qva-activate="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!