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

51 lines
916 B
JavaScript
Raw Normal View History

2019-10-06 21:11:18 +02:00
/**
* R3.Graph.Table
* @param apiComponent
* @constructor
*/
R3.Graph.Table = function(
apiComponent
) {
__RUNTIME_COMPONENT__;
2019-10-15 22:21:34 +02:00
this.linkedComponents.domElement = R3.DomElement;
2019-10-06 21:11:18 +02:00
R3.Graph.call(
this,
true
);
};
2019-10-15 22:21:34 +02:00
R3.Graph.Table.prototype = Object.create(R3.Graph.prototype);
2019-10-06 21:11:18 +02:00
R3.Graph.Table.prototype.constructor = R3.Graph.Table;
/**
* Updates the instance with the current state
*/
R3.Graph.Table.prototype.createInstance = function() {
2019-10-15 22:21:34 +02:00
this.instance = this.graphics.Table(this);
2019-10-06 21:11:18 +02:00
__CREATE_INSTANCE__;
};
/**
* Updates the instance with the current state
*/
R3.Graph.Table.prototype.updateInstance = function(property) {
2019-10-15 22:21:34 +02:00
if (
property === 'columns' ||
property === 'rows' ||
property === 'data'
) {
this.instance = this.graphics.Table(this);
}
2019-10-06 21:11:18 +02:00
R3.Graph.prototype.updateInstance.call(this, property);
};