QTable
Information noteSTABLE.
This API is reliable and breaking changes are unlikely.
This API is reliable and breaking changes are unlikely.
Class
QTable()
Wrapper around hypercube data from the Qlik associative engine. Notification is sent when data is available. To receive notification, bind a listener on OnData of the QTable instance.
Version history
Version state | Details |
---|---|
Introduced | 2.1 |
Properties
rows
Type: Array.QRow
Data rows.
headers
Type: Array.QHeader
Header information.
totals
Type: Array.QMeasureCell
Total information for measures.
rowCount
Type: Number
Total number of rows for the qHyperCube, including rows not fetched from the server.
colCount
Type: Number
Total number of columns for the qHyperCube.
Example
var table = qlik.table( this );
var listener = function() {
var rowCount = table.rowCount;
var colCount = table.colCount;
table.OnData.unbind( listener ); //unregister the listener when no longer notification is needed.
};
table.OnData.bind( listener ); //bind the listener
if ( !this.$scope.table ) {
this.$scope.table = qlik.table( this );
}
<tr ng-repeat="row in table.rows">
<td ng-repeat="cell in row.cells"> {{cell.qText}} </td>;
</tr>