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.
36 lines
796 B
36 lines
796 B
9 years ago
|
/** */
|
||
|
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 });
|
||
|
}
|
||
|
});
|