function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
arag73877arag73877 

Remove tabs dynamically from apex component

Hi guys,

I have created a visualforce page in which i am using the apex dynamic component tag.I have a button called new and another button called cancel.On clicking the new button i am dynamically adding a tabusing the 

 

myTab.childComponents.add(NewButton);
 myTab.childComponents.add(cancelButton);

 

Finally (adding it to my tab panel)

NewCaseTab.childComponents.add(myTab);

 

The dynamic adding of tabs is working fine but I also  want to remove these tabs dynamically on clicking the cancel button.

Not able to find any solution for this online.Not sure if  this is possible.

 

any help or suggestions is highly appreciated.

 

Thanks and regards,

arag73877