Ronaldo
18 Jan 2008, 6:33 AM
Hi all,
I just added a small window extension (http://extjs.com/learn/Extension:DefaultWindowButtons) that will add Ok and Cancel buttons to your window, and adds some standard behaviour to these buttons.
It's also possible to add only a Close butten instead of the Ok and Cancel buttons.
The plus of this is that you do not have to retype these things for every window.
Small as the extension is, IMHO it also shows how to build extensions and how to use the event handlers.
Any comments, improvements and opinions are welcome as always.
NEW
I've added some functionality and updated the page to v0.91. There's one addition I still want to make before reaching v1.0, and that is to be able to add a Select button, which will return the selected record(s) from a grid in the window. I hope to do this soon.
Enjoy,
Ronaldo
I just added a small window extension (http://extjs.com/learn/Extension:DefaultWindowButtons) that will add Ok and Cancel buttons to your window, and adds some standard behaviour to these buttons.
It's also possible to add only a Close butten instead of the Ok and Cancel buttons.
The plus of this is that you do not have to retype these things for every window.
Small as the extension is, IMHO it also shows how to build extensions and how to use the event handlers.
Any comments, improvements and opinions are welcome as always.
NEW
I've added some functionality and updated the page to v0.91. There's one addition I still want to make before reaching v1.0, and that is to be able to add a Select button, which will return the selected record(s) from a grid in the window. I hope to do this soon.
Enjoy,
Ronaldo