Changeset 1722


Ignore:
Timestamp:
2010-10-01 14:19:28 (3 years ago)
Author:
mpo
Message:

extra sample in search of the issue behind #369

Location:
trunk/samples/kauri-forms-sample/src/main/kauri
Files:
5 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samples/kauri-forms-sample/src/main/kauri/pages/selection-control.html.xml

    r1720 r1722  
    5959                  } 
    6060              },  
     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              }, 
    6173              "carMake": { 
    6274                  "base": "string", 
     
    130142      $(function() { 
    131143          var theform = new jQuery.org.kauriproject.forms.Form("form", fconf); 
    132           theform.setWireValue({"digits": [1,2]}); //force creation of 2 rows in the collection 
     144          theform.setWireValue({"digits": [1,2], "picknumber": 1}); //force creation of 2 rows in the collection 
    133145 
    134146          var alldigits = [1,2,3,4,5,6,7,8,9,0]; 
     
    206218        </dl> 
    207219         
     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 
    208229        <h2>Dependent list boxes</h2> 
    209230 
Note: See TracChangeset for help on using the changeset viewer.