facebook-workplaceoutlookemailmicrosoft-teamsdiscordmessengercustom-servicesmacoslinuxwindowsinboxwhatsappicloudtweetdeckhipchattelegramhangoutsslackgmailskype
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.
35 lines
691 B
35 lines
691 B
9 years ago
|
/** */
|
||
|
Ext.define('Ext.aria.form.RadioGroup', {
|
||
|
override: 'Ext.form.RadioGroup',
|
||
|
|
||
|
requires: [
|
||
|
'Ext.aria.form.CheckboxGroup'
|
||
|
],
|
||
|
|
||
|
ariaGetRenderAttributes: function() {
|
||
|
var me = this,
|
||
|
attrs;
|
||
|
|
||
|
attrs = me.callParent();
|
||
|
|
||
|
if (me.allowBlank !== undefined) {
|
||
|
attrs['aria-required'] = !me.allowBlank;
|
||
|
}
|
||
|
|
||
|
return attrs;
|
||
|
},
|
||
|
|
||
|
ariaGetAfterRenderAttributes: function() {
|
||
|
var me = this,
|
||
|
attrs;
|
||
|
|
||
|
attrs = me.callParent();
|
||
|
|
||
|
if (me.labelEl) {
|
||
|
attrs['aria-labelledby'] = me.labelEl.id;
|
||
|
}
|
||
|
|
||
|
return attrs;
|
||
|
}
|
||
|
});
|