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