Free and Open source Web Builder Framework. Next generation tool for building templates without coding
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
391 B

define([ 'backbone','./Buttons'],
function (Backbone, Buttons) {
/**
* @class Panel
* */
return Backbone.Model.extend({
defaults :{
id : '',
content : '',
visible : true,
buttons : [],
},
initialize: function(options) {
this.btn = this.get('buttons') || [];
this.buttons = new Buttons(this.btn);
this.set('buttons', this.buttons);
},
});
});