2016-07-20 12:25:51 +02:00
|
|
|
/**
|
2016-11-02 18:32:24 +01:00
|
|
|
* File: widget.js
|
2016-07-20 12:25:51 +02:00
|
|
|
* Author: Markus Grigull <mgrigull@eonerc.rwth-aachen.de>
|
|
|
|
* Date: 28.06.2016
|
|
|
|
* Copyright: 2016, Institute for Automation of Complex Power Systems, EONERC
|
|
|
|
* This file is part of VILLASweb. All Rights Reserved. Proprietary and confidential.
|
|
|
|
* Unauthorized copying of this file, via any medium is strictly prohibited.
|
|
|
|
**********************************************************************************/
|
|
|
|
|
2016-06-28 10:57:34 +02:00
|
|
|
import Model from 'ember-data/model';
|
|
|
|
import attr from 'ember-data/attr';
|
2016-07-15 12:09:31 +02:00
|
|
|
import { belongsTo } from 'ember-data/relationships';
|
2016-06-28 10:57:34 +02:00
|
|
|
|
|
|
|
export default Model.extend({
|
|
|
|
name: attr('string'),
|
2016-11-02 18:32:24 +01:00
|
|
|
widgetData: attr(),
|
2016-06-28 14:23:49 +02:00
|
|
|
width: attr('number', { defaultValue: 100 }),
|
|
|
|
height: attr('number', { defaultValue: 100 }),
|
2016-07-15 12:09:31 +02:00
|
|
|
type: attr('string'),
|
2016-07-19 16:13:56 +02:00
|
|
|
x: attr('number', { defaultValue: 0 }),
|
|
|
|
y: attr('number', { defaultValue: 0 }),
|
2016-07-15 12:09:31 +02:00
|
|
|
visualization: belongsTo('Visualization', { async: true })
|
2016-06-28 10:57:34 +02:00
|
|
|
});
|