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 db993e2d2f Add todo.md
Fix project and visualization delete
Start with plot styling
2016-06-29 17:08:42 +02:00

19 lines
453 B
JavaScript

import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'div',
attributeBindings: [ 'style' ],
classNames: [ 'plotContainer' ],
plot: null,
editing: false,
style: function() {
return 'width: ' + this.get('plot.width') + 'px; height: ' + this.get('plot.height') + 'px;';
}.property('plot'),
isTable: function() {
var type = this.get('plot.type');
return type === 'table';
}.property('plot.type')
});