PDA

View Full Version : Change content of a TabPanel Item on click



siebmanb
31 Aug 2011, 11:25 PM
Hello everyone,

I have a new challenge for you guys today !
I have a TabPanel with a few items. In each item, I have links. A click on a link needs to change the item content only.
In other words, you click on a link in an item and it displays more info within that item.

I tried to getItem() from the TabPanel and exchange it with a different item but I couldn't find the way to do it.

Thank you very much ! ;)

siebmanb
1 Sep 2011, 2:28 AM
The method update() can do that really well.

tabs.getActiveItem().update("<div>test</div>");


Was pretty easy after all :-?