示例代码:

Ext.onReady(function(){
	var _panel = new Ext.Panel({
		title:"用户登陆",
		frame:true,
		width:250,
		height:130,
		layout:"form",
		labelWidth:45,
		defaults:{xtype:"textfield",width:160},
		items:[
			{fieldLabel:"账号"},
			{fieldLabel:"密码"}
			],
		buttons:[
		{text:"确定"},
		{text:"取消"}
		]
	});
	
	_panel.applyToMarkup(Ext.DomHelper.append(Ext.getBody(),{
								tag:"div",
								cls:"contain",
								cn:[
								{tab:"div",cls:"center"}
								]
							},true).child("div"));
	
});

效果图:

ExtJS UI 之 Ext.Panel

相关文章:

  • 2021-08-10
  • 2022-12-23
  • 2022-01-24
  • 2021-08-06
  • 2021-06-24
  • 2022-03-10
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-17
  • 2022-12-23
  • 2022-02-06
  • 2021-11-03
  • 2021-11-07
  • 2021-07-28
相关资源
相似解决方案