web-apps/apps/spreadsheeteditor/main/app/model/Formula.js

43 lines
967 B
JavaScript
Raw Normal View History

2016-03-11 00:48:53 +00:00
/**
* Formula.js
*
* Models for formulas.
*
* Created by Alexey.Musinov on 11/04/14
* Copyright (c) 2014 Ascensio System SIA. All rights reserved.
*
*/
define([
'backbone'
], function(Backbone){
'use strict';
SSE.Models = SSE.Models || {};
SSE.Models.FormulaModel = Backbone.Model.extend({
defaults: function () {
return {
id : Common.UI.getId(),
index : 0,
group : null,
name : null,
args : null
}
}
});
SSE.Models.FormulaGroup = Backbone.Model.extend({
defaults: function () {
return {
id : Common.UI.getId(),
index : 0,
name : null,
store : null,
functions : []
}
}
});
});