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
545 B
22 lines
545 B
var Marionette = require('marionette');
|
|
var ButtonView = require('./ButtonView');
|
|
|
|
module.exports = Marionette.CollectionView.extend({
|
|
className : 'btn-group',
|
|
itemView : ButtonView,
|
|
|
|
initialize : function(options) {
|
|
this.menu = options.menu;
|
|
this.className = 'btn-group';
|
|
|
|
if (options.menu.collapse) {
|
|
this.className += ' btn-group-collapse';
|
|
}
|
|
},
|
|
|
|
onRender : function() {
|
|
if (this.menu.collapse) {
|
|
this.$el.addClass('btn-group-collapse');
|
|
}
|
|
}
|
|
}); |