Programatically create tabs
Hi all-
I've been trying to work this out today, and maybe I'm missing
something obvious.
I have been working with the tab control where I've converted a <ul>
to tabs, and that's working great. I've also had success adding tabs
using tabs("add").
Now I've come across a use case where I don't know at design-time what
tabs I will have. What I really want to do is create an empty tab
control and add tabs at run-time, when I know what is needed.
I've thought about either having a placeholder tab, and redirecting it
using tabs("url") once I know what will be required, or generating the
<ul> and then converting it to a tab control. Either of these options
would work, but they feel a little messy.
Any suggestions?
Cheers,
Daniel