PDA

View Full Version : handler : handleMaximize, id



koko2589
27 Apr 2012, 4:36 AM
i have this


Ext.ux.MaximizeTool = function() {
this.init = function(ct) {
var maximizeTool = {
id : 'maximize',
handler : handleMaximize,
scope : ct,
qtip : 'Maximize'
};

iwant to maximize from tbar

i try
handler: function(btn){
Ext.get('myid').on('click', function() {
handleMaximize

can i get help
tankyue

eror

Ext.get('panelsport').on('click', function() {Uncaught TypeError: Cannot call method 'on' of null (repeated 2 times)

koko2589
27 Apr 2012, 7:02 AM
:-?

vietits
27 Apr 2012, 5:11 PM
It's difficult to say what's wrong with the code you provided. You should post more code related to the problem you mentioned then everybody could help you.