web-apps/apps/spreadsheeteditor/main/app/model/Formula.js
Maxim Kadushkin 741b10515d webapps added
2016-03-10 21:48:53 -03:00

43 lines
967 B
JavaScript

/**
* 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 : []
}
}
});
});