Skip to main content
Hitachi Vantara Lumada and Pentaho Documentation

Table

pentaho.data. Table

The Table class implements the ITable interface.

AMD Module

require(["pentaho/data/Table"], function(Table) { /* code goes here */ });

Implements

Constructor

Name Description
new Table(table)

Creates a table given specification of data.

Constructor Details

new Table(table)

Creates a table given specification of data.

Source: doc-js/pentaho/data/Table.jsdoc, line 17

Parameters:
Name Default Value Summary
table : object
Optional

The data specification.

Example

Creating a table from a table specification

require("pentaho/data/Table", function(Table) {

 var table = new Table({
 model: [
 {name: "family", type: "string", label: "Family"},
 {name: "sales", type: "number", label: "Sales"},
 ],
 rows: [
 {c: [{v: "plains", f: "Plains"}, 12300000]},
 {c: [{v: "cars", f: "Cars"}, 456000]}
 ]
 });

 // ...
});