Ext accordion布局子元素的点击事件是什么?

来源:百度知道 编辑:UC知道 时间:2024/09/23 04:22:46
var rightPanel = new Ext.Panel({
bodyStyle : 'background-Color:skyblue',
region : 'west',
id : 'west-panel',
split : true,
collapsible : false,
width : 200,
height : 'auto',
margins : '65 0 5 5',
cmargins : '65 5 5 5',
layout : 'accordion',
layoutConfig : {
animate : true
},
items : [{
title : '个人资料管理',
bodyStyle : 'background-Color:skyblue',
items : [{html : '  <font size=' + -1 + '>基本资料管理</font>'
}, {
html : '  <font size=' + -1 + '>个人密码修改</font>'
}]
});
这是一段accordion的代理 怎么给items里的HTML项添加点击事件??

panel 的 activate 事件 可以试试
{
html : ' <font id="pw-modify" size=' + -1 + '>个人密码修改</font>'
}]
Ext.get('pw-modify').on('click',function(){});