macoslinuxwindowsinboxwhatsappicloudtweetdeckhipchattelegramhangoutsslackgmailskypefacebook-workplaceoutlookemailmicrosoft-teamsdiscordmessengercustom-services
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.
28 lines
858 B
28 lines
858 B
/** |
|
* @private |
|
* Private utility class for managing all {@link Ext.form.field.Radio} fields grouped by name. |
|
*/ |
|
Ext.define('Ext.form.RadioManager', { |
|
extend: 'Ext.util.MixedCollection', |
|
singleton: true, |
|
|
|
getByName: function(name, formId) { |
|
return this.filterBy(function(item) { |
|
return item.name === name && item.getFormId() === formId; |
|
}); |
|
}, |
|
|
|
getWithValue: function(name, value, formId) { |
|
return this.filterBy(function(item) { |
|
return item.name === name && |
|
item.inputValue == value && // jshint ignore:line |
|
item.getFormId() === formId; |
|
}); |
|
}, |
|
|
|
getChecked: function(name, formId) { |
|
return this.findBy(function(item) { |
|
return item.name === name && item.checked && item.getFormId() === formId; |
|
}); |
|
} |
|
});
|
|
|