mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-23 00:00:02 +01:00

plot-abstract is the base object for all plots. Size changes on plots are saved to the server on the save button. Add sortable mixin.
21 lines
472 B
JavaScript
21 lines
472 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.Component.extend({
|
|
classNames: [ 'plot' ],
|
|
editing: false,
|
|
|
|
isTable: function() {
|
|
var type = this.get('plot.type');
|
|
return type === 'table';
|
|
}.property('plot.type'),
|
|
|
|
isChart: function() {
|
|
var type = this.get('plot.type');
|
|
return type === 'chart';
|
|
}.property('plot.type'),
|
|
|
|
isValue: function() {
|
|
var type = this.get('plot.type');
|
|
return type === 'value';
|
|
}.property('plot.type')
|
|
});
|