I'm trying to make a button fire the mousedown and mouseup events on ExtJS 4, but I cannot find a properly way to do this.
I was trying to do something like this on my controller:
init: function()
{
this.control(
{
'button[itemId="pttButton"]':
{
mousedown: doSomething,
mouseUp: doSomethingElse
}
});
}
but these events don't seem to exist.
What's the best way to do this other than access directly the dom and using native Javascript events?