The qx.Mobile form is divided in groups every time you use the method 
"addGroupHeader".

So it is about the order you add the groups and items into the form.
this.__name for example is in the first group because it appears after the 
first "addGroupHeader"

The row count start at zero for each group. 


      this.__name = new 
qx.ui.mobile.form.TextField().set({placeholder:"Username"});
      this.__name.setRequired(true);

      form.addGroupHeader("Contact");
      form.add(this.__name, "Username");

      this.__password = new 
qx.ui.mobile.form.PasswordField().set({placeholder:"Password"});
      form.add(this.__password, "Password");

      this.__rememberPass = new qx.ui.mobile.form.CheckBox();
      form.add(this.__rememberPass, "Remember password? ");
      this.__rememberPass.setModel("password_reminder");
      this.__rememberPass.bind("model",this.__password,"value");
      this.__password.bind("value",this.__rememberPass,"model");

      // NUMBER FIELD
      this.__numberField = new qx.ui.mobile.form.NumberField();
      this.__numberField.setValue("0");
      this.__numberField.setMaximum(150);
      this.__numberField.setMinimum(0);
      form.add(this.__numberField,"Age");



Am 12.02.2013 um 14:13 schrieb Alex:

> to show or hide a row in a form you need to know the groupIndex and the 
> itemIndex.
> How to get to these indexes?
> 
> I'm sure there is aneasy way to do this, but I haven't found it yet. 
> 
> Best Regards,
> Alex 
> ------------------------------------------------------------------------------
> Free Next-Gen Firewall Hardware Offer
> Buy your Sophos next-gen firewall before the end March 2013 
> and get the hardware for free! Learn more.
> http://p.sf.net/sfu/sophos-d2d-feb_______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to