ext在textfield 后面添加一个button

                                layout:'column', 
	    			border:false,
	    			bodyPadding : "0px 0px 5px 0px",
	    			id:'renewLoan',
	    			hidden:true,
	    			items:[
	    			{
						  border:false,
						  columnWidth:0.80,
                          xtype:'textfield',
                          width:'100%',
                          fieldLabel: '续贷标的号',
                          name: 'loan_bid'
	    			},
	    			{
						  border:false,
                          columnWidth:0.20,
                          items: [
                           new Ext.Button({
                           	width:'100%',
                            text:'选择标的',
                            handler:function(){
                         		var win = new Yrc.repay.LoansBidWin({params:me.params});
								win.doShow(me.params);
								win.centerPanel.on('afterSuccess',function(){
							  	win.window.close();
							  	this.reload();
								},this); //刷新
								win.centerPanel.on('doSubmit',function(b_ids,draw_amt){
									win.window.close();
									me.formPanel.getForm().findField('loan_bid').setValue(b_ids);
									me.formPanel.getForm().findField('withholding_amt').setValue(draw_amt);
								},this);
                            }        
                           })
                          ]
                   	 }
	    			]

 
 

你可能感兴趣的:(EXTJS)