X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..f562e4c6e5fac7bcb445985b99acbea4d706e6f0:/docs/guides/forms/examples/simple_form/app.js diff --git a/docs/guides/forms/examples/simple_form/app.js b/docs/guides/forms/examples/simple_form/app.js new file mode 100644 index 00000000..a414f02e --- /dev/null +++ b/docs/guides/forms/examples/simple_form/app.js @@ -0,0 +1,32 @@ +/** + * @example Simple Form + * + */ +Ext.require('Ext.form.Panel'); +Ext.require('Ext.form.field.Date'); +Ext.onReady(function() { + Ext.create('Ext.form.Panel', { + renderTo: Ext.getBody(), + title: 'User Form', + height: 130, + width: 280, + bodyPadding: 10, + defaultType: 'textfield', + items: [ + { + fieldLabel: 'First Name', + name: 'firstName' + }, + { + fieldLabel: 'Last Name', + name: 'lastName' + }, + { + xtype: 'datefield', + fieldLabel: 'Date of Birth', + name: 'birthDate' + } + ] + }); + +});