1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-23 00:00:02 +01:00
VILLASweb/app/components/plot-container.js
Markus Grigull 8337550390 Add visualizations and plots
Plots can be added via drag'n'drop.
2016-06-28 14:23:49 +02:00

17 lines
457 B
JavaScript

import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'div',
attributeBindings: [ 'style' ],
plot: null,
style: function() {
return 'width: ' + this.get('plot.width') + 'px; height: ' + this.get('plot.height') + 'px; border: 1px solid black;';
}.property('plot'),
isTable: function() {
var modelName = this.get('plot.constructor.modelName');
return modelName === 'plot-table';
}.property('plot.type')
});