Created
October 22, 2012 19:34
-
-
Save pguerrant/3933570 to your computer and use it in GitHub Desktop.
Rtl Ext.view.Table override
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.define('Ext.rtl.view.Table', { | |
override: 'Ext.view.Table', | |
rtlCellTpl: [ | |
'<td class="' + Ext.baseCSSPrefix + 'rtl {tdCls}" {tdAttr}>', | |
'<div {unselectableAttr} class="' + Ext.baseCSSPrefix + 'rtl ' + Ext.baseCSSPrefix + 'grid-cell-inner" style="text-align: {align}; {style};">{value}</div>', | |
'</td>', | |
{ | |
priority: 0 | |
} | |
], | |
beforeRender: function() { | |
var me = this; | |
me.callParent(); | |
if (me.getHierarchyState().rtl) { | |
me.addCellTpl(me.getTpl('rtlCellTpl')); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment