Extjs 弹框windows

<div id="hello-win" class="x-hidden">
</div>
$("#timeXuan").click(function(){ 
			      if(!timeXuan){
			            timeXuan = new Ext.Window({
			                title: "时间选择",
			                el:'hello-win',
			                layout:'fit',
			              	width:220,
			                height:130,
			                closeAction:'hide',
			                plain: true,
			                items: [timeSlotPanel],
			                buttonAlign: 'center',//居中
			                buttons : [{
										text : '确定',
										height:10,
										handler : function(){
													
													}
										},{
										text : '取消',
										height:10,
										handler : function(){
										timeXuan.hide();
											}
										}]
						 });
			        }
			       	 timeXuan.setPosition(308, 110); //定义位置
	       			 timeXuan.show(this);
	 			});	

猜你喜欢

转载自blog.csdn.net/weixin_42666837/article/details/86591350