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.
 
 
 
 

20 lines
403 B

import { Model } from '../../common';
import Buttons from './Buttons';
export default class Panel extends Model {
defaults() {
return {
id: '',
content: '',
visible: true,
buttons: [],
attributes: {},
};
}
initialize(options) {
this.btn = this.get('buttons') || [];
this.buttons = new Buttons(this.btn);
this.set('buttons', this.buttons);
}
}