PDA

View Full Version : Click event on header of Panel Component



dpasichnik
22 Nov 2007, 10:35 AM
Hello,

There is no click event on Panel component. Could somebody give me an example of right coding to extend predefined events on a component?

Thank you!

tryanDLS
22 Nov 2007, 10:47 AM
Panel is a component - it doesn't handle mouse events - you can add handlers to the various Elements that make up the panel.

panel.header.on('click', function() {alert('foo');});

dpasichnik
23 Nov 2007, 3:14 PM
Thanks a lot! That works!