extjs4 display tooltip on button click instead of mouse hover
Posted
by
user856753
on Stack Overflow
See other posts from Stack Overflow
or by user856753
Published on 2012-12-12T23:01:56Z
Indexed on
2012/12/12
23:03 UTC
Read the original article
Hit count: 388
I am trying to add a on click listener to the below tooltip. I do not want the tooltip to display on mouse hover. Instead it need it show on button click. Do I have to add a handler function inside a listener?
{
xtype: 'button',
cls:'my-btn',
iconCls:'question',
src:'../www/css/slate/btn/question.png',
padding: '5 0 0 0',
listeners: {
render: function(cmp) {
Ext.create('Ext.tip.ToolTip', {
closable:true,
hideDelay : 3000,
padding: '0 0 0 0',
maxWidth:400,
width:800,
target: cmp.el,
html: "<b>read-only</b>:Users will have read only access to all pages",
getTargetXY: function() {
return [810, 340];
}
});
}
}
},
© Stack Overflow or respective owner