Grzegorz K.

Grzegorz K. Angular, JavaScript,
Frontend, UI

Temat: ID panelu w handlerze w toolbar

Witajcie

Nie wiecie jak pobrać odczytać id panelu w handlerze w toolbar ?
Co i jak tam przekazać ?

new Ext.Panel({

title: 'T',
id:'some_id',
tools: [{

id:'maximize',

handler: function(){
//pokaz id panelu
}

}]

});


Thx!

konto usunięte

Temat: ID panelu w handlerze w toolbar

W manualu stoi

# handler : Function
Required. The function to call when clicked. Arguments passed are:

* event : Ext.EventObject
The click event.
* toolEl : Ext.Element
The tool Element.
* panel : Ext.Panel
The host Panel
* tc : Ext.Panel
The tool configuration object

Czyli robisz:


handler: function(a,b,c,d){
//wtedy id jest pod c.id
}



Wyślij zaproszenie do