I am trying to create panel in ext js and got success on that but I also want to add click event with this
{
xtype: 'panel',
flex: 1,
x: 10,
y: parseInt(panelCreation[i - 1].y) +
parseInt(panelCreation[i -1].height) + 10,
width: twidth,
height: theight,
layout: 'absolute'
}
I don't want to add click event separately I want to add with this code like after layout:absolute add comma and event please help me in this.