PDA

View Full Version : "Search Forum" like example



franzisk
29 May 2007, 3:48 AM
How can I create a window just like this one used in the forum to do searches??

I have a button [Upload] in a Toolbar (in a Grid Head) and I want when clicked that window comes up and show an upload procedure I already have working.

This is the window I am talking about:
http://www.kooky.com.br/shots/pop_window.png

And this is my Toolbar grid where I want to set the window to the button:
http://www.kooky.com.br/shots/button_upload_window.png

Is there any example anywhere in documentation?

(btw, it's terrible to find out *how* to use some futures of Ext, most of them have no examples)

liggett78
29 May 2007, 3:59 AM
Create a hidden div with all the layout and position:absolute. Then show and position it properly upon the button click. I think it's not rocket science.

Animal
29 May 2007, 4:45 AM
It's even easier than that with Ext since Jack took care of the rocket science! ;)

You just have to browse the docs a bit, and experiment

Create a BasicDialog, and position its element (myDialog.getEl()) directly under the button using http://extjs.com/deploy/ext/docs/output/Ext.Element.html#alignTo