microsoft-teamsdiscordmessengercustom-servicesmacoslinuxwindowsinboxwhatsappicloudtweetdeckhipchattelegramhangoutsslackgmailskypefacebook-workplaceoutlookemail
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.
37 lines
884 B
37 lines
884 B
/** */ |
|
Ext.define('Ext.aria.grid.column.Column', { |
|
override: 'Ext.grid.column.Column', |
|
|
|
ariaSortStates: { |
|
ASC: 'ascending', |
|
DESC: 'descending' |
|
}, |
|
|
|
ariaGetAfterRenderAttributes: function() { |
|
var me = this, |
|
sortState = me.sortState, |
|
states = me.ariaSortStates, |
|
attr; |
|
|
|
attr = me.callParent(); |
|
|
|
attr['aria-sort'] = states[sortState]; |
|
|
|
return attr; |
|
}, |
|
|
|
setSortState: function(sorter) { |
|
var me = this, |
|
states = me.ariaSortStates, |
|
oldSortState = me.sortState, |
|
newSortState; |
|
|
|
me.callParent(arguments); |
|
|
|
newSortState = me.sortState; |
|
|
|
if (oldSortState !== newSortState) { |
|
me.ariaUpdate({ 'aria-sort': states[newSortState] }); |
|
} |
|
} |
|
});
|
|
|