Skip to content

Instantly share code, notes, and snippets.

@pguerrant
Created October 22, 2012 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pguerrant/3933570 to your computer and use it in GitHub Desktop.
Save pguerrant/3933570 to your computer and use it in GitHub Desktop.
Rtl Ext.view.Table override
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