Hi, as I see the example is right... but you have to put the RadioButtons inside a qx.Mobile Form, not directly to the content.
var form = new qx.ui.mobile.form.Form(); var radio1 = new qx.ui.mobile.form.RadioButton(); var radio2 = new qx.ui.mobile.form.RadioButton(); var radio3 = new qx.ui.mobile.form.RadioButton(); var radiogroup = new qx.ui.mobile.form.RadioGroup(radio1, radio2, radio3); form.add(radio1, "Germany"); form.add(radio2, "UK"); form.add(radio3, "USA"); this.getRoot().add(new qx.ui.mobile.form.renderer.Single(form)); ________________________________________ Von: Peter Caffin [pe...@caffin.org] Gesendet: Montag, 31. März 2014 19:32 An: qooxdoo Development Betreff: [qooxdoo-devel] Qooxdoo mobile: Adding a Radiogroup into a Group Hi guys, Just working through the API and am I'm not quite sure how to proceed with putting a Radiogroup into a Group box. The API example for RadioGroup has the text for the radios set at add-time: var r1 = new qx.ui.mobile.form.RadioButton(); var r2 = new qx.ui.mobile.form.RadioButton(); var r3 = new qx.ui.mobile.form.RadioButton(); page.getContent().add(r1,"New South Wales"); page.getContent().add(r2,"Queensland"); page.getContent().add(r3,"South Australia"); var radiogroup = new qx.ui.mobile.form.RadioGroup(r1,r2,r3); However, Group doesn't seem to give us the opportunity to set the text. var title = new qx.ui.mobile.form.Title("Region"); var radiogroup = new qx.ui.mobile.form.RadioGroup(r1,r2,r3); var group = new qx.ui.mobile.form.Group([ radiogroup ]); page.getContent().add(title); page.getContent().add(group); I'm certain I'm missing something obvious - this is something that appears in the Mobile Showcase afterall :) Suggestions much appreciated :) ------------------------------------------------------------------------------ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel