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

The component combines the property-table and line-chart to manage and display the properties of one entity. Thus it is reusable for multiple entities at the same time.
17 lines
348 B
JavaScript
17 lines
348 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.Component.extend({
|
|
tagName: 'div',
|
|
classNames: ['layout-page'],
|
|
|
|
visibleProperty: function() {
|
|
var properties = this.get('entity.properties');
|
|
return properties.objectAt(0);
|
|
}.property('entity'),
|
|
|
|
actions: {
|
|
showPropertyValues(_prop) {
|
|
this.set('visibleProperty', _prop);
|
|
}
|
|
}
|
|
});
|