PDA

View Full Version : Putting doublclick event on a Panel header



29er
9 Mar 2011, 8:17 AM
Hi,
I want to add a 'doubleclick' event on the header of my Ext.Panel.
I am not having any luck using the headerCfg property.
Can someone set me straight ?
I'm sure it's something simple, but my brain is slow today.

Thanks!


PS. one more quick question. Is there a config option that puts the 'expand' button on the left side of an expandable panel instead of the right ?

fay
9 Mar 2011, 8:34 AM
myPanel.header.on('dblclick', function(e, t, o)
{
// Your code.
});

fay
9 Mar 2011, 8:39 AM
To put the expand on the left, give your Panel an id value and override the x-tool css, e.g.,



<style>
#myPanelId .x-tool
{
float: left;
}
</style>

29er
9 Mar 2011, 9:03 AM
thanks so much fay. appreciate the quick response!