*
* @constructor
* @param {Object} [config] Configuration options
+ * @cfg {string} [name] Group name
* @cfg {string} [type='send_unselected_if_any'] Group type
* @cfg {string} [title] Group title
* @cfg {string} [separator='|'] Value separator for 'string_options' groups
OO.EventEmitter.call( this );
OO.EmitterList.call( this );
+ this.name = config.name;
this.type = config.type || 'send_unselected_if_any';
this.title = config.title;
this.separator = config.separator || '|';
return this.active;
};
+ /**
+ * Get group name
+ *
+ * @return {string} Group name
+ */
+ mw.rcfilters.dm.FilterGroup.prototype.getName = function () {
+ return this.name;
+ };
+
/**
* Get group type
*
$.each( filters, function ( group, data ) {
if ( !model.groups[ group ] ) {
model.groups[ group ] = new mw.rcfilters.dm.FilterGroup( {
+ name: group,
type: data.type,
title: data.title,
separator: data.separator,