PDA

View Full Version : Differentials on top of core



INeedADip
10 Apr 2009, 11:15 AM
I've been using ExtJS for a long time now and it has served me well....I love everything you guys are doing...but.....

The size of the library is fairly big....but it comes with a lot. I use forms and buttons on 99% of all my pages, I use the grid on a handful of pages and the tree view on other pages.

I'd love to include my CoreFormsButtons.js on and every page, then on pages that require it add gridAndPrerequisits.js file on top and treeviewAndPrerequisits.js on the relevant pages.

It is real hard to figure out how to accomplish this. I end up having to do it manually by source by source until I don't get errors.

I understand that they share a ton of components, and even when I think I've got it nailed, there are still things in my gridAndPrerequisits.js that are in my CoreFormsButtons.js...but minimizing the overlap somehow would be very helpful. I have no idea how to accomplish something like this because I'm not that smart...but if anyone else has run across this and has some pointers I'd appreciate any insight....

It would be great to have some kind of Loader like: http://developer.yahoo.com/yui/yuiloader/

something like:

Ext.Loader({
require: ['grid', 'tree'],
onSuccess: function(){
loadGrid();
}
});

Or maybe a tool like the following:
http://developer.yahoo.com/yui/examples/yuiloader/yl-list.html
The link above would actually be a lot more useful for me personally...

That would be much easier for me to accomplish the task explained above.

mankz
10 Apr 2009, 12:38 PM
This has been done a handful of times before, some resources:

http://extjs.com/forum/showthread.php?t=49682
http://extjs.com/forum/showthread.php?t=21681
http://extjs.com/forum/showthread.php?t=40866