2019-09-15 14:16:32 +02:00
|
|
|
import { GroupCollection } from 'collections/group-collection';
|
|
|
|
import { MenuSectionModel } from 'models/menu/menu-section-model';
|
2015-10-17 23:49:24 +02:00
|
|
|
|
2017-01-31 07:50:28 +01:00
|
|
|
const GroupsMenuModel = MenuSectionModel.extend({
|
2015-10-17 23:49:24 +02:00
|
|
|
defaults: _.extend({}, MenuSectionModel.prototype.defaults, {
|
|
|
|
scrollable: true,
|
|
|
|
grow: true
|
|
|
|
}),
|
|
|
|
|
2019-08-18 10:17:09 +02:00
|
|
|
initialize() {
|
2015-10-17 23:49:24 +02:00
|
|
|
this.set('items', new GroupCollection());
|
|
|
|
},
|
|
|
|
|
2019-08-18 10:17:09 +02:00
|
|
|
_loadItemCollectionType() {
|
2019-09-15 14:16:32 +02:00
|
|
|
return require('collections/group-collection').GroupCollection;
|
2015-10-17 23:49:24 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2019-09-15 14:16:32 +02:00
|
|
|
export { GroupsMenuModel };
|