This sample shows a techique for modifying the output of the Page Tabs builder to add a button to each tab that can "close" that tab, along with a way to restore all closed tabs. Here's a picture of the model in action:
This model uses a Visibility Setter to control whether each tab is shown, and tracks the visibility state of the tabs using a Java map as a Linked Java Object. The close button is inserted into the tab using an Image Button using a modified page location. Some wrapper HTML - used to make the button and tab text appear on one line - is also added using non-default page locations.
Download sample model and images.