voyent
how to close panelTab?  XML
Forum Index -> Components
Author Message
pbk97030

Joined: 04/Oct/2007 00:00:00
Messages: 17
Offline


Hi, everyone

I want to know how to close an opened tab?
Once a tab is created, there is no way to close it because API doesn't provide close button or image.

I did search API and documents, but I couldn't find any useful information.
If anyone knows the solution, please share your idea.

Thanks,
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


Hi,

You can use the selectedIndex attribute of the panelTabSet. It's 0-based. All you have to do is set the index so that it doesn't match the index of the panelTab you don't want to show.

Philip

.
pbk97030

Joined: 04/Oct/2007 00:00:00
Messages: 17
Offline


Thanks for your reply.

Is there any way to provide a user with capability of closing tab?

For example, the user can click close image that tab is removed from the screen. For now, tab allows for only String label, but I need a way to add image near String label.

Thanks,
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


No, currently there's no way for you to do that.

Philip

.
pbk97030

Joined: 04/Oct/2007 00:00:00
Messages: 17
Offline


Thanks, Philip

I think I can control the number of tab manually, but I wish I have that.
When do we expect to have such a feature?

mark.collette


Joined: 07/Feb/2005 00:00:00
Messages: 1692
Offline


If you want it to happen, then vote for this Jira issue:
http://jira.icefaces.org/browse/ICE-2365
[Email]
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team