I realise that closable tabs has been raised several times but am wondering if there is indeed a preferred / recommended way of implementing them in UI 1.9.2
I am rendering my tabs as per below:
Clearly it's easy enough to add the appropriate "closable" image to tabs that have been added dynamically in code but what then? Essentially I want to detect the click on the "close" image, raise an event which then triggers a handler to destroy the content of the tab that's closing.
I was told that closable tabs was included in ui 1.9.2 but I guess I'm missing something as all I can find is collapsible tabs.
Sorry if this topic has been done to death but I'm not seeing a confirmed approach to the issue although I admit to being very new to all of this.
On upgrading to JQuery U 1.9.2 I am seeing some odd behaviour relating to adding tabs (see graphic below where "GSE-0002" should only be present in the top tab container. What's really is odd is "GSE-0002" also appears in the tab containers below the main tab although they are not displayed as standard tabs. I have replaced the "add" api call with the new recommendation: