Changeset 1722
- Timestamp:
- 2010-10-01 14:19:28 (3 years ago)
- Location:
- trunk/samples/kauri-forms-sample/src/main/kauri
- Files:
-
- 5 added
- 1 edited
-
entities/thenumbers (added)
-
entities/thenumbers/four.json (added)
-
entities/thenumbers/one.json (added)
-
entities/thenumbers/three.json (added)
-
entities/thenumbers/two.json (added)
-
pages/selection-control.html.xml (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/samples/kauri-forms-sample/src/main/kauri/pages/selection-control.html.xml
r1720 r1722 59 59 } 60 60 }, 61 "picknumber": { 62 "base": "integer", 63 "label": "Pick a number", 64 "control": { 65 "base": "selection-control", 66 "options": { 67 "uri": "${publicUri('service:/data/thenumbers')}", 68 "valueTemplate": "{number}", 69 "labelTemplate": "{id}" 70 } 71 } 72 }, 61 73 "carMake": { 62 74 "base": "string", … … 130 142 $(function() { 131 143 var theform = new jQuery.org.kauriproject.forms.Form("form", fconf); 132 theform.setWireValue({"digits": [1,2] }); //force creation of 2 rows in the collection144 theform.setWireValue({"digits": [1,2], "picknumber": 1}); //force creation of 2 rows in the collection 133 145 134 146 var alldigits = [1,2,3,4,5,6,7,8,9,0]; … … 206 218 </dl> 207 219 220 <h2>Options from a download URI using value/label templates.</h2> 221 222 <p>In this sample you select text, but the value actually is an integer.</p> 223 224 <dl> 225 <dt><label kauri-idref="picknumber" kauri-role="label"/></dt> 226 <dd><select kauri-idref="picknumber"/></dd> 227 </dl> 228 208 229 <h2>Dependent list boxes</h2> 209 230
Note: See TracChangeset
for help on using the changeset viewer.