-
26 Aug 2012 8:22 PM #1
tab/button
tab/button
Hi,
How to make a button default click like a panel title.
how to a add a label before tabs of a tab panel?
Screen shot attached.Screen shot 2012-08-27 at 9.50.19 AM.png
-
26 Aug 2012 10:19 PM #2
Hi,
may you provide your code for better understanding the problemsword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
-
27 Aug 2012 8:30 PM #3
I have given the screen shot.I have made simple TabPanel.and unable to add a label before the tabs.
-
28 Aug 2012 1:14 AM #4
What do you think with label before the tabs? Do you want add label before each tab or where do you want add your label?
-
28 Aug 2012 7:52 AM #5
I want to just add one label before all the tabs.
i have given the screen shot.
-
28 Aug 2012 8:10 AM #6
Change renderTpl of your Ext.tab.Bar. Defaul tpl:
Code:// @privaterenderTpl: [ '<div id="{id}-body" class="{baseCls}-body <tpl if="bodyCls"> {bodyCls}</tpl> <tpl if="ui"> {baseCls}-body-{ui}<tpl for="uiCls"> {parent.baseCls}-body-{parent.ui}-{.}</tpl></tpl>"<tpl if="bodyStyle"> style="{bodyStyle}"</tpl>></div>', '<div id="{id}-strip" class="{baseCls}-strip<tpl if="ui"> {baseCls}-strip-{ui}<tpl for="uiCls"> {parent.baseCls}-strip-{parent.ui}-{.}</tpl></tpl>"></div>' ]
-
8 Jan 2013 4:42 PM #7
I was hoping to do pretty mush the same things, I tried using that TPL with ExtJS 4.1, but I couldn't find where I should be adding the text to have it show up. Does 4.1 have a different default TPL?
-
9 Jan 2013 1:32 AM #8
TabPanel in 4.1 uses Ext.tab.Bar and renderTemplate is a bit different
PHP Code://@private renderTpl: [
'<div id="{id}-body" class="{baseCls}-body {bodyCls}<tpl if="ui"> {baseCls}-body-{ui}<tpl for="uiCls"> {parent.baseCls}-body-{parent.ui}-{.}</tpl></tpl>"<tpl if="bodyStyle"> style="{bodyStyle}"</tpl>>',
'{%this.renderContainer(out,values)%}',
'</div>',
'<div id="{id}-strip" class="{baseCls}-strip<tpl if="ui"> {baseCls}-strip-{ui}<tpl for="uiCls"> {parent.baseCls}-strip-{parent.ui}-{.}</tpl></tpl>"></div>'
],


Reply With Quote