PDA

View Full Version : tabpanel subitem without showing title !!!



emredagli
3 Sep 2009, 1:25 AM
Hii,
I have a strange situation and I do not know how to handle it.

I have a tabpanel with 2 sub items (they have a title),

And I have to switch to another panel (it is common panel and it has no title) in the same tabpanel (because my customer want to see title's of these 2 panels... (:|).

I try giving title as a null, or without defining, but it always try to render a title.
Is it possible to hide title of one of the tabpanel items? Or not to render a title?

Thanks a lot.

Animal
3 Sep 2009, 1:26 AM
Incomprehensible.

emredagli
3 Sep 2009, 1:31 AM
Ok.
I will say your answer to our customers....:D

emredagli
3 Sep 2009, 1:42 AM
Actually there is a technical problem that,
- If user switch the panel (by clicking the title) what should I do?
And while switching back to same page I have to show common panel again....

So "If I can hide title", I plan to disabling the other 2 panel to prevent switching.

Animal
3 Sep 2009, 1:44 AM
"switching" hiding? showing?

No idea how any of this is being done.

emredagli
3 Sep 2009, 1:56 AM
Sorry,
I misunderstand your reply "Incomprehensible" ...

Ok let me explain in "Result-oriented".

I have a tabpanel and it has 3 items.
Is it possible to hide one item's title in the tabpanel?

Thanks.

Animal
3 Sep 2009, 4:01 AM
The title of an item which is in a TabPanel is displayed in the tab selector element in the tab strip.

You want to hide the tab selector so that it cannot be activated through the UI?

emredagli
3 Sep 2009, 4:03 AM
Exactly,
I activate it by myself in the code when needed.

Animal
3 Sep 2009, 4:45 AM
http://extjs.com/deploy/dev/docs/?class=Ext.TabPanel&member=getTabEl

emredagli
3 Sep 2009, 8:05 PM
Thanks Animal,
Is this right way of hiding title?

There is a dom element with "li" tag and its id is "tabpanelId__itemId" in the tab selector part.
And adding style "display:none" in this element.

"God bless Firebug..."

Animal
3 Sep 2009, 9:31 PM
Yes, that's the selector. Hide it if you don't want it.