`

Extjs 文本框 TextField 添加点击(onclick)事件方法

    博客分类:
  • Ajax
EXT 
阅读更多
new Ext.Toolbar.TextItem('工具条:'), 
{  
  xtype:'textfield',
  listeners: {
   render: function(p) {
      // Append the Panel to the click handler's argument list.
     p.getEl().on('click', function(p){
            	//处理点击事件代码
      });
  },
  single: true  // Remove the listener after first invocation
 }}

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics