PDA

View Full Version : table el.on('click'



koko2589
8 Nov 2011, 10:02 AM
i wont click function on table
i try
layout:'table', id:'lnk', listeners: {
render : {
fn: function(lnk) {
lnk.el.on('click', function() {//do somting//});
}}
}
,

layoutConfig: {columns:3},
// applied to child components
defaults: { width:55, height: 45
},

not wort
tankou

mitchellsimoens
8 Nov 2011, 1:39 PM
Any errors? What debugging have you done?

koko2589
9 Nov 2011, 3:51 AM
no eror its not work
my table is inside carousel
http://www.itoto8.com/
(http://www.itoto8.com/)

var item1 = new Ext.Panel({ renderTo: 'container2',style: {
margin: '5px 5px 5px 5px'
},
layoutConfig: {
pagedScroll: true,
loopCount:0,
scrollButtonPosition:'split',
marginScrollButtons: 1
},


layout: 'carousel',


items: [{

title: "???????? ?????",
id: "blog",
style: {
margin: '5px 5px 5px 5px'
},
height: 140, width: 200,


layout:'table', id:'lnk', listeners: { render : { fn: function(lnk) { lnk.el.on('click', function() {//do somting//}); }}}

koko2589
9 Nov 2011, 3:59 AM
i do like this is work but from body iwant just from table
tankyu

listeners: {render: function(c){
c.getEl().on({
click: function(el){
new Ext.ux.ToastWindow({
title: '?????-??????? ???????',closeAction: 'hide', closable: false,
draggable : false,resizable : false,bodyStyle: 'background: #ffffff;padding:0px',




html : '<body><IFRAME id="chat11"


SRC="http://www.tvonsport.com/totalmedia/bz.html" frameborder="0"scrolling="no"


style="border:0px none;width:100%;height:100%;"></IFRAME></body>',
iconCls: 'downloads'
}). show(document);
},
scope: c
});
}


},