On Mon, Jan 2, 2012 at 15:56, Scott Chapman <[email protected]> wrote:
> When I open a tab in a tab pane, I'd like to attach some of my own data to
> it.
>
> Is there a better way to do this:
>
> var foo = new qx.ui.tabview.Page("label");
> foo.__myData = {"bar":"baz"};
>
Yup. As with anything that descends from qx.core.Object (nearly everything
in qooxdoo), you have a "userData" capability, almost like a property.
foo.setUserData("myData", { "bar" : "baz" });
then later...
var myData = foo.getUserData("myData");
Derrell
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel