telegramhangoutsslackgmailskypefacebook-workplaceoutlookemailmicrosoft-teamsdiscordmessengercustom-servicesmacoslinuxwindowsinboxwhatsappicloudtweetdeckhipchat
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
796 B
35 lines
796 B
/** */ |
|
Ext.define('Ext.aria.tab.Tab', { |
|
override: 'Ext.tab.Tab', |
|
|
|
//<locale> |
|
closeText: 'closable', |
|
//</locale> |
|
|
|
ariaGetAfterRenderAttributes: function() { |
|
var me = this, |
|
attrs; |
|
|
|
attrs = me.callParent(arguments); |
|
|
|
attrs['aria-selected'] = !!me.active; |
|
|
|
if (me.card && me.card.getEl()) { |
|
attrs['aria-controls'] = me.card.getEl().id; |
|
} |
|
|
|
return attrs; |
|
}, |
|
|
|
activate: function(suppressEvent) { |
|
this.callParent([suppressEvent]); |
|
|
|
this.ariaUpdate({ 'aria-selected': true }); |
|
}, |
|
|
|
deactivate: function(suppressEvent) { |
|
this.callParent([suppressEvent]); |
|
|
|
this.ariaUpdate({ 'aria-selected': false }); |
|
} |
|
});
|
|
|