Reputation: 122
I have a border layout implemented with West and Center regions. I've buttons in West region and ideally windows should open in center region. Can someone guide, how it shall be done? Do I need to specify 'renderTo' property somehow to open window in Center Region?
Upvotes: 1
Views: 183
Reputation: 488
Using the window's showBy function, you can specify a component or element that the window will appear by. If you call window.showBy(center)
with center
being the component in the layout with the config region: center
, you should see what you're looking for.
Here is a fiddle to illustrate one way of getting the center component from within the button handler
Upvotes: 1