On Wed, Jun 16, 2010 at 15:50, Fritz Zaucker <[email protected]>wrote:

> Hi,
>
> is it possible to insert a tabview.Page into a tabview at a certain
> position
> (instead of adding it to the end)?
>

Try adding it normally, followed by this code, which should move it to the
new position:

tabView.getChildControl("pane").addAt(page.getButton(), newPosition);


> Also, is there a simpler way of programmatically removing a tabview than
>
>     tabview.indexOf(page);
>     tabview.remove(page);
>     var children = parent.getChildren();
>     tabview.setSelection([children[index-1]]);
>     page.destroy();
>

That seems overly complicated, but I haven't needed to do that. Hopefully
someone else has a clean one-liner for you.

Derrell
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to