Simple Form Extjs

In this section, we will learn about how to make a simple form Extjs and how to change the Extjs theme, so that form looks nice. But before continuing, you must have an installer of Extjs, you can download the latest version of Extjs from its official siteĀ http://www.extjs.com/products/extjs/download.php. The latest version of Extjs was ext-2.2.1.

Furthemore, if you successfully to download it, place that installer in your drive computer.Example,this is my drive C:\xamp\htdocs\Defafe\ext-2.2.1.

Ok, now we get ready to start this tutorial.

1. index.html


//this tutorial using xtheme-vistablue.


//include file SimpleForm.js

Source code must be on the order

2. SimpleForm.js

Ext.onReady(function(){
Ext.QuickTips.init();
var SimpleForm = new Ext.FormPanel({
labelWidth: 90, // label settings
frame:true,
width:300,
autoHeight:true,
padding:200,
defaultType: 'textfield',

items: [{
fieldLabel: 'Full Name',//name of label
name: 'first',//name of field,
allowBlank:false
},{
fieldLabel: 'Address',
name: 'address'
},{
fieldLabel: 'Email',
name: 'email',
vtype:'email'//validation email
}
],

buttons: [{
text: 'Save'
},{
text: 'Cancel'
}]
});

var createwindow = new Ext.Window({
frame:true,
title: 'Simple Form',
width:315,
height:180,
closable: false,
items: SimpleForm
});
createwindow.show();

});

Here isĀ  screen shot of this tutorial

xtheme-vistablue

Tags: , , , , , , , , , , , , , , , , , , ,

Incoming search terms for the article:

simple form extjs , xamp extjs , extjs 2 2 1 ext window autoheight , extjs xtheme-vistablue , XML tag name mismatch (expected img) extjs , XML tag name mismatch (expected img) fileupload extjs themes , extjs file upload , extjs theme , extjs upload , extjs upload file , extjs grid checkbox , extjs tutorial , extjs login , extjs grid paging , extjs login form extjs checkbox readonly , checkbox row extjs , upload image extjs mysql , extjs file upload tutoriel , tutoriel extjs , extJS checkbox datastore , FileUploadField extjs documentation , icon-user-delete extjs , getSelectionModel() getSelections(); , register extjs application 

2 Responses to “Simple Form Extjs”

  1. mardi says:

    I’ve tried but only just form is appear and filed it does not appear..

    how is this?

  2. rosi says:

    saya punya masalah please bantu saya.
    saya punya dua gridpanel. gridpanel1 untuk table inventaris dan gridpanel2 untuk table history..
    bagaimana caranya agar saya bisa menampilkan gridpanel2 yg berisi data history yang kodenya = code.gridpanel1
    ketika saya doubleclick gridpanel1 maka tampil data di gridpanel yang kode.gridpanel2=kode.gridpanel1

Leave a Reply

Security Code: