/* This file is part of Ext JS 4.2 Copyright (c) 2011-2013 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. Build date: 2013-05-16 14:36:50 (f9be68accb407158ba2b1be2c226a6ce1f649314) */ Ext.define('Ext.rtl.util.Renderable', { override: 'Ext.util.Renderable', _rtlCls: Ext.baseCSSPrefix + 'rtl', _ltrCls: Ext.baseCSSPrefix + 'ltr', // this template should be exactly the same as frameTableTple, except with the order // of right and left TD elements switched. rtlFrameTableTpl: [ '{%this.renderDockedItems(out,values,0);%}', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '
{parent.baseCls}-{parent.ui}-{.}-tr{frameElCls}" role="presentation"> {parent.baseCls}-{parent.ui}-{.}-tc{frameElCls}" role="presentation"> {parent.baseCls}-{parent.ui}-{.}-tl{frameElCls}" role="presentation">
{parent.baseCls}-{parent.ui}-{.}-mr{frameElCls}" role="presentation"> {parent.baseCls}-{parent.ui}-{.}-mc{frameElCls}" role="presentation">', '{%this.applyRenderTpl(out, values)%}', ' {parent.baseCls}-{parent.ui}-{.}-ml{frameElCls}" role="presentation">
{parent.baseCls}-{parent.ui}-{.}-br{frameElCls}" role="presentation"> {parent.baseCls}-{parent.ui}-{.}-bc{frameElCls}" role="presentation"> {parent.baseCls}-{parent.ui}-{.}-bl{frameElCls}" role="presentation">
', '{%this.renderDockedItems(out,values,1);%}' ], beforeRender: function() { var rtl = this.getHierarchyState().rtl; if (rtl) { this.addCls(this._rtlCls); } else if (rtl === false) { this.addCls(this._ltrCls); } this.callParent(); }, getFrameTpl: function(table) { return (table && this.getHierarchyState().rtl) ? this.getTpl('rtlFrameTableTpl') : this.callParent(arguments); }, initRenderData: function() { var me = this, renderData = me.callParent(), rtlCls = me._rtlCls; if (rtlCls && me.getHierarchyState().rtl) { renderData.childElCls = ' ' + rtlCls; } return renderData; }, getFrameRenderData: function () { var me = this, data = me.callParent(), rtlCls = me._rtlCls; if (rtlCls && me.getHierarchyState().rtl) { data.frameElCls = ' ' + rtlCls; } return data; } });