Skip to main content

Pentaho+ documentation has moved!

The new product documentation portal is here. Check it out now at docs.hitachivantara.com

 

Hitachi Vantara Lumada and Pentaho Documentation

IModel

IModel

The spec.IModel interface describes the structure of a model specification.

Properties:
Name Default Value Description
attrs : Array.<pentaho.data.spec.IAttribute | pentaho.data.Attribute)>

An array of attribute instances or specifications.

Can be an empty array or not be specified.

Source: doc-js/pentaho/data/spec/IModel.jsdoc, line 26

See also: pentaho.data.spec.Model

Extends

Example

A basic model specification

 var modelSpec = {
 attrs: [
 {
 name: "product",
 label: "Product",
 type: "string",
 members: [
 {v: "car", f: "Car"},
 {v: "plane", f: "Plane"}
 ]
 },
 {
 name: "price",
 label: "Price",
 type: "number"
 }
 ],

 p: {
 "foo": 1,
 "bar": 2
 }
 };