r3-legacy/src/r3-graph-table.js

51 lines
916 B
JavaScript

/**
* R3.Graph.Table
* @param apiComponent
* @constructor
*/
R3.Graph.Table = function(
apiComponent
) {
__RUNTIME_COMPONENT__;
this.linkedComponents.domElement = R3.DomElement;
R3.Graph.call(
this,
true
);
};
R3.Graph.Table.prototype = Object.create(R3.Graph.prototype);
R3.Graph.Table.prototype.constructor = R3.Graph.Table;
/**
* Updates the instance with the current state
*/
R3.Graph.Table.prototype.createInstance = function() {
this.instance = this.graphics.Table(this);
__CREATE_INSTANCE__;
};
/**
* Updates the instance with the current state
*/
R3.Graph.Table.prototype.updateInstance = function(property) {
if (
property === 'columns' ||
property === 'rows' ||
property === 'data'
) {
this.instance = this.graphics.Table(this);
}
R3.Graph.prototype.updateInstance.call(this, property);
};