dana.lees
7 Sep 2011, 10:09 AM
Hello,
I'm using ExtJS 4 with a panel which I would like to expand and collapse (to the left and right respectively).
I've added a tool of type 'Left':
this.tools = [ {
type: 'left',
itemId: 'leftBtn',
handler: function(evt, toolEl, panel, tc) {
}
}]
I would like to collapse the panel to the left when pressing the 'left' icon and than to expand it when pressing the 'right' button.
I'm not sure how to actually collapse and expand the panel.
How should I do that?
Thank you,
Dana
I'm using ExtJS 4 with a panel which I would like to expand and collapse (to the left and right respectively).
I've added a tool of type 'Left':
this.tools = [ {
type: 'left',
itemId: 'leftBtn',
handler: function(evt, toolEl, panel, tc) {
}
}]
I would like to collapse the panel to the left when pressing the 'left' icon and than to expand it when pressing the 'right' button.
I'm not sure how to actually collapse and expand the panel.
How should I do that?
Thank you,
Dana