Ext 학습_양식 구성 요소 4

2075 단어 ext
Ext.namespace("com.deng");
/**
 *  
 *  
 */
Ext.onReady(function(){
	
	var txtName = new Ext.form.TextField({
		name: "txtName",
		fieldLabel: " ",
		width: 200
	});
   	
	var txtPassword = new Ext.form.TextField({
		name: "txtPassword",
		fieldLabel: " ",
		inputType: "password",
		width: 200
	});
	
	var rdaSexBoy = new Ext.form.Radio({
		name: "rdaSex",
		inputValue: " ",
		boxLabel: " ",
		checked: true
	});
	
	var rdaSexGirl = new Ext.form.Radio({
		name: "rdaSex",
		inputValue: " ",
		boxLabel:" ",
		width: 150
	});
	
	var grpSex = new Ext.form.RadioGroup({
		name: "sex",
		fieldLabel: " ",
		items: [rdaSexBoy, rdaSexGirl],
		width: 100
	});
	
	var dateBirthday = new Ext.form.DateField({
		name: "dateBirthday",
		fieldLabel: " ",
		width: 200,
		format: "Y-m-d H:i:s",
		value: new Date()
	});
	
	var chkHobby1 = new Ext.form.Checkbox({
		name: "chkHobby",
		inputValue: " ",
		boxLabel: " ",
		checked: true
	});
	var chkHobby2 = new Ext.form.Checkbox({
		name: "chkHobby",
		inputValue: " ",
		boxLabel: " "
	});
	var chkHobby3 = new Ext.form.Checkbox({
		name: "chkHobby",
		inputValue: " ",
		boxLabel: " "
	});
	var chkHobby4 = new Ext.form.Checkbox({
		name: "chkHobby",
		inputValue: " ",
		boxLabel: " "
	});
	
	var grpGobby = new Ext.form.CheckboxGroup({
		name: "hobby",
		fieldLabel: " ",
		items: [
           chkHobby1, chkHobby2,chkHobby3,chkHobby4
		],
		width: 350
	});

좋은 웹페이지 즐겨찾기