Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to add tab in middle

    Hi
    I am using a tabSet and using following code to add any new tab -

    tabSet.addTab({
    title: "Green",
    icon: "pieces/16/cube_green.png",
    pane: isc.Img.create({autoDraw: false, width: 48, height: 48, src: "pieces/48/cube_green.png"})
    });

    With this code i am able to add a new tab at the end ,
    Is there any way by which i can specify the location of the new tab, i.e suppose i already have 4 tabs in my tabSet , now i am able to open a new tab at 5th number but i want to open that new tab on 3rd number.

    How can this be done?
    Thnx in advance

    #2
    There is an optional second parameter to addTab to specify its position numerically.

    Comment

    Working...
    X