mirror of https://github.com/artf/grapesjs.git
nocodeframeworkdrag-and-dropsite-buildersite-generatortemplate-builderui-builderweb-builderweb-builder-frameworkwebsite-builderno-codepage-builder
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.
26 lines
450 B
26 lines
450 B
define([ 'backbone','require'],
|
|
function (Backbone, require) {
|
|
/**
|
|
* @class Button
|
|
* */
|
|
return Backbone.Model.extend({
|
|
|
|
defaults :{
|
|
id: '',
|
|
className: '',
|
|
command: '',
|
|
context: '',
|
|
buttons: [],
|
|
attributes: {},
|
|
active: false,
|
|
},
|
|
|
|
initialize: function(options) {
|
|
if(this.get('buttons').length){
|
|
var Buttons = require('./Buttons');
|
|
this.set('buttons', new Buttons(this.get('buttons')) );
|
|
}
|
|
},
|
|
|
|
});
|
|
});
|
|
|