Hi Karthi,
thanks, it's working. But, when I add new tab from code and populate it with some html and I want to close that new tab, I cannot change
selectedItem back to first.
The scenario is like this.
First, click on the button creates new tab and loads html inside.
Then I want to close that tab...but...
the tab is closed, and selected tab is not the first one.
I tried with onTabRemoved and onTabRemoving, but the results are the same. It will not select back the first tab.
That's the first problem. The second is that I want to disable closing the first tab. I tried with first if statement in method onTabRemoving,
but the tab closes anyway.
Thanks!
Bernard.