File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1414 <style>
1515 #demo-borders .ui-collapsible .ui-collapsible-heading .ui-btn { border-top-width: 1px !important; }
1616 </style>
17+ <style id="textinput-controlgroup">
18+ .controlgroup-textinput{
19+ padding-top:.22em;
20+ padding-bottom:.22em;
21+ }
22+ </style>
1723 </head>
1824 <body>
1925 <div data-role="page" class="jqm-demos" data-quicklinks="true">
350356 </form>
351357 </div><!--/demo-html -->
352358
359+ <h2>Textinputs</h2>
360+ <p>While textinputs are not officially supported by the controlgroup they can be made to work with some simple css</p>
361+ <p>To make this work you will need to add one css rule and uses textinput's wrapperClass option to set two classes on the textinput wrapper</p>
362+ <div data-demo-html="true" data-demo-css="#textinput-controlgroup">
363+ <label for="currency-controlgroup">Value</label>
364+ <div data-role="controlgroup" data-type="horizontal">
365+ <select>
366+ <option>$</option>
367+ <option>€</option>
368+ <option>£</option>
369+ <option>¥</option>
370+ <option>₩</option>
371+ <option>₹</option>
372+ </select>
373+ <input id="currency-controlgroup" type="text" data-wrapper-class="controlgroup-textinput ui-btn">
374+ <button>.00</button>
375+ </div>
376+ <label for="search-control-group">Search</label>
377+ <div data-role="controlgroup" data-type="horizontal">
378+ <input type="text" id="search-control-group" data-wrapper-class="controlgroup-textinput ui-btn">
379+ <button>Submit</button>
380+ <button>Reset</button>
381+ </div>
382+ </div>
383+
353384 <h2>Pre-rendered markup</h2>
354385 <p>You can supply pre-rendered markup for any controlgroup to save startup time. The example below illustrates the markup you have to provide for a pre-rendered controlgroup. Note that the widgets inside the controlgroup need not necessarily be pre-rendered.</p>
355386 <div data-demo-html="true">
You can’t perform that action at this time.
0 commit comments