Is it possible to prevent tab creation with existing id?

Hello,

I have 2 questions conserning Tabbar.

  1. When my script is going to create a new tab with $someId it must check if the same id doesn’t exist alredy in Tabbar, if $someId already exists then script should not create a new tab. How can I check this?

  2. Is it possible to add on Tab some hint? e.g. if text too long to display with label, i’d like to show full text with hint on mouseOver.

Please advise.

Thank you.
Regards,
Alex.

Hello,

When my script is going to create a new tab with $someId it must check if the same id doesn’t exist alredy in Tabbar,

You may try to check _tabs object:

if(tabbar._tabs[id]) alert("tab exists!")

if text too long to display with label, i’d like to show full text with hint on mouseOver.

tabbar doesn’t provide such a built-in feature. You may place the html element as tab label and set event handlers for it

Thank you much Alexandra!

Alex.