UNPKG

formio-sfds

Version:
29 lines (26 loc) 2.43 kB
<!doctype html> <html lang="en"> <head> <title>Datagrid with select | formio-sfds examples</title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="/sfgov/forms.css"> </head> <body> <div class="formio-sfds"> <div class="container p-2"> <h1 class="h3 mb-4"> <a href="/">formio-sfds@10.0.0</a> / Datagrid with select </h1> <sfgov-form data-form="{&quot;components&quot;:[{&quot;type&quot;:&quot;datagrid&quot;,&quot;input&quot;:true,&quot;label&quot;:&quot;Enter the relevant information for each ADU.&quot;,&quot;reorder&quot;:false,&quot;addAnotherPosition&quot;:&quot;bottom&quot;,&quot;defaultOpen&quot;:false,&quot;layoutFixed&quot;:false,&quot;enableRowGroups&quot;:false,&quot;initEmpty&quot;:false,&quot;tableView&quot;:false,&quot;defaultValue&quot;:[{&quot;proposedUnitType&quot;:&quot;&quot;}],&quot;key&quot;:&quot;proposedAdUs&quot;,&quot;components&quot;:[{&quot;label&quot;:&quot;Select the unit type&quot;,&quot;widget&quot;:&quot;choicesjs&quot;,&quot;tableView&quot;:true,&quot;data&quot;:{&quot;values&quot;:[{&quot;label&quot;:&quot;Studio&quot;,&quot;value&quot;:&quot;Studio&quot;},{&quot;label&quot;:&quot;1 Bedroom&quot;,&quot;value&quot;:&quot;1Bedroom&quot;},{&quot;label&quot;:&quot;2 Bedroom&quot;,&quot;value&quot;:&quot;2Bedroom&quot;},{&quot;label&quot;:&quot;3 Bedroom or more&quot;,&quot;value&quot;:&quot;3Bedroom&quot;}]},&quot;validate&quot;:{&quot;required&quot;:true},&quot;key&quot;:&quot;proposedUnitType&quot;,&quot;type&quot;:&quot;select&quot;,&quot;input&quot;:true,&quot;searchThreshold&quot;:0.3},{&quot;label&quot;:&quot;Square footage&quot;,&quot;mask&quot;:false,&quot;spellcheck&quot;:true,&quot;tableView&quot;:false,&quot;delimiter&quot;:false,&quot;requireDecimal&quot;:false,&quot;inputFormat&quot;:&quot;plain&quot;,&quot;validate&quot;:{&quot;required&quot;:true},&quot;key&quot;:&quot;proposedSquareFootage&quot;,&quot;type&quot;:&quot;number&quot;,&quot;decimalLimit&quot;:0,&quot;input&quot;:true}]}]}" data-options=""> </sfgov-form> </div> </div> <script src="https://unpkg.com/formiojs@4.14.8/dist/formio.full.min.js"></script> <script src="/dist/formio-sfds.standalone.js"></script> <script src="/dist/examples.js"></script> </body> </html>