mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-23 00:00:02 +01:00
19 lines
453 B
JavaScript
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')
|
|
});
|