this.controller = controller;
this.model = model;
- this.buttons = new OO.ui.ButtonGroupWidget( {
+ this.buttons = new mw.rcfilters.ui.GroupWidget( {
+ events: {
+ click: 'buttonClick'
+ },
items: [
new OO.ui.ButtonWidget( {
data: 'namespaces',
// Events
this.model.connect( this, { update: 'onModelUpdate' } );
- this.buttons.aggregate( { click: 'buttonClick' } );
this.buttons.connect( this, { buttonClick: 'onButtonClick' } );
this.$element