/ext-4.1.0_b3/examples/videos/formBuilder.html
HTML | 35 lines | 31 code | 3 blank | 1 comment | 0 complexity | 61e66167eb2adcbba86f33d94242a9e1 MD5 | raw file
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<html>
3<head>
4 <title>Layouts</title>
5 <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css"/>
6
7 <!-- GC -->
8
9 <script type="text/javascript" src="../../ext-all.js"></script>
10</head>
11<body>
12 <script type="text/javascript" charset="utf-8">
13 Ext.onReady(function() {
14 var form = Ext.create('Ext.form.Panel', {
15 height: 600,
16 width: 600,
17 renderTo: Ext.getBody(),
18 title: 'Form Builder',
19
20 tbar: [
21 {
22 text: 'Add Textfield',
23 handler: function() {
24 form.add({
25 xtype: 'textfield',
26 fieldLabel: 'Text item'
27 });
28 }
29 }
30 ]
31 });
32 });
33 </script>
34</body>
35</html>