Topic
  • 1 reply
  • Latest Post - ‏2013-12-18T18:13:13Z by mburati
BPMA
BPMA
1 Post

Pinned topic Adding tabs dynamically

‏2013-12-18T06:55:21Z |

Hi,

I have a requirement where in i have a text box, if we enter 2 and click ok it show show 2 tabs and if we enter 10 its should show 10 tabs.

How can i achieve this using dojo?

  • mburati
    mburati
    2561 Posts

    Re: Adding tabs dynamically

    ‏2013-12-18T18:13:13Z  

    First, can you verify that you're using IBM Web Experience Factory (which this forum is for) and the WEF Dojo Tab Builder  to develop this web application or portlet ?

    If not, then a Dojo forum may be more helpful for your use case.

    If you are using WEF, then the answer may be different depending on whether you know what the 10 tabs are (and can define them in the Dojo Tab Builder) ahead of time (and optionally hide them via Visibility Setter builder or similar) at runtime or if you don't know what they are until some other action triggers an operation that does a backend lookup.  The latter case may need to involve writing Javascript against the Dojo Tab API (see dojotoolkit.org for more info) to dynamically add tabs that weren't in the HTML when the page was rendered.

     

    I hope that info helps,
    ..Mike Burati 
    The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM.