{"title":"表单","inframe":true,"hidden":false,"roles":{"demo":1,"dev":1},"pageLink":"","children":[{"configs":{"itemId":"module"},"children":[{"configs":{"layout":"fit","itemId":"viewport1"},"children":[{"configs":{"scrollable":"true","itemId":"container1"},"children":[{"configs":{"title":"应用标题","docked":"top","titleAlign":"left","itemId":"titlebar1"},"children":[{"configs":{"ui":"action","text":"设置","align":"right","glyph":"f044","itemId":"set"},"events":{"tap":"//通常远程获取数据可使用如下方法：\n// Wb.request({\n//   url: 'url',\n//   params: params,\n//   success: function(resp) {\n//     Wb.setValue(app.viewport1,Wb.decode(resp.responseText));\n//   }\n// });\nWb.setValue(app.viewport1, {\n  name: 'Yang',\n  number: 123,\n  email: 'yang@putdb.com'\n});"},"children":[],"type":"tbutton","expanded":false},{"configs":{"ui":"confirm","text":"重置","align":"right","glyph":"f0e2","itemId":"reset"},"events":{"tap":"Wb.confirm('确定要重置所有值吗？', function() {\n  Wb.reset(app.viewport1);\n  Wb.toast('所有值已经被重置。');\n});"},"children":[],"type":"tbutton","expanded":false}],"type":"ttitlebar","expanded":true},{"configs":{"title":"标题信息","instructions":"请输入以上信息。","itemId":"tfieldset1"},"children":[{"configs":{"label":"姓名","autoCapitalize":"true","required":"true","itemId":"name"},"children":[],"type":"ttext","expanded":false},{"configs":{"xtype":"passwordfield","label":"密码","itemId":"password"},"children":[],"type":"ttext","expanded":false},{"configs":{"label":"被禁用","itemId":"disabled","disabled":"true"},"children":[],"type":"ttext","expanded":false},{"configs":{"label":"数字","itemId":"number"},"children":[],"type":"tnumber","expanded":false},{"configs":{"placeHolder":"you@putdb.com","xtype":"emailfield","label":"电子邮件","itemId":"email"},"children":[],"type":"ttext","expanded":false},{"configs":{"placeHolder":"http://www.putdb.com","xtype":"emailfield","label":"网址","itemId":"url"},"children":[],"type":"ttext","expanded":false},{"configs":{"label":"Spinner","itemId":"spinner"},"children":[],"type":"tspinner","expanded":false},{"configs":{"label":"复选框","itemId":"check","checked":"true"},"children":[],"type":"tcheck","expanded":false},{"configs":{"name":"team","value":"redteam","label":"选项1","itemId":"tradio1"},"children":[],"type":"tradio","expanded":false},{"configs":{"name":"team","value":"blueteam","label":"选项2","itemId":"tradio2"},"children":[],"type":"tradio","expanded":false},{"configs":{"displayField":"title","valueField":"rank","label":"选择框","itemId":"select"},"children":[{"configs":{"data":"[{\n  rank: 'master',\n  title: 'Master'\n}, {\n  rank: 'padawan',\n  title: 'Student'\n}, {\n  rank: 'teacher',\n  title: 'Instructor'\n}, {\n  rank: 'aid',\n  title: 'Assistant'\n}]","itemId":"store"},"children":[],"type":"tstore","expanded":false}],"type":"tselect","expanded":true},{"configs":{"value":"new Date()","label":"日期","itemId":"date","picker":"{yearFrom:1980}"},"children":[],"type":"tdate","expanded":true},{"configs":{"label":"可输入日期","itemId":"datetime1"},"children":[],"type":"tdatetime","expanded":false},{"configs":{"label":"可输入时间","type":"time","itemId":"datetime2"},"children":[],"type":"tdatetime","expanded":false},{"configs":{"value":"2015-11-26 15:58","label":"日期时间","type":"datetime","itemId":"datetime3"},"children":[],"type":"tdatetime","expanded":false},{"configs":{"xtype":"textareafield","maxRows":"10","label":"多行文本","itemId":"textarea"},"children":[],"type":"ttext","expanded":false},{"configs":{"label":"滑块","itemId":"tslider1"},"children":[],"type":"tslider","expanded":false},{"configs":{"value":"[40, 90]","label":"多个滑块","itemId":"tslider2"},"children":[],"type":"tslider","expanded":false},{"configs":{"label":"切换","itemId":"ttoggle1"},"children":[],"type":"ttoggle","expanded":false}],"type":"tfieldset","expanded":true}],"type":"tcontainer","expanded":true}],"type":"tviewport","expanded":true}],"type":"module","expanded":true}],"iconCls":""}