View Full Version : Developing Widgets: Ext 1.* or 2.*
dotnetCarpenter
10 Oct 2007, 10:07 AM
I'm building an extension for Ext 1.1.1. At first I thought it was gonna be a small component - nothing fancy. But now it's starting to grow to grid like proportion and I can see that I will have to redesign it for it to play nicely with the rest of Ext and work as intended, e.g. plug-in anywhere.
Now I'm wondering if it's worth developing the component for the Ext 1.1.1 platform and not Ext. 2.0. I know some of you out there have extensive experience with Ext ux development. What do you think? Is it easier to create widgets for Ext 2.0 compared to Ext 1.*? What thing that bothers me now is all the events I have to manually implement, when the documentation is so vague about them.
jack.slocum
10 Oct 2007, 10:22 AM
2.0 is the way to go. The component architecture is much cleaner. As for the vague events, I'm not sure what you mean? All the events are documented.
dotnetCarpenter
10 Oct 2007, 10:47 AM
As for the events: yes, but I not sure how the events should be implemented. A hint to where one can see it in the wild would be great. Like the "render" event. If I fire it at the end of my code the HTML (my component uses MasterTemplates to ease the dom creating) is not in the page and a listener function won't be able to do much with it. I know it my responsibility as the component developer but I feel a little lost as such.
jay@moduscreate.com
10 Oct 2007, 11:23 AM
2.0 is the way to go. The component architecture is much cleaner. As for the vague events, I'm not sure what you mean? All the events are documented.
OMFG is it ever! bravo!
jack.slocum
10 Oct 2007, 1:54 PM
As for the events: yes, but I not sure how the events should be implemented. A hint to where one can see it in the wild would be great. Like the "render" event. If I fire it at the end of my code the HTML (my component uses MasterTemplates to ease the dom creating) is not in the page and a listener function won't be able to do much with it. I know it my responsibility as the component developer but I feel a little lost as such.
You don't need to fire the built in events. The base classes will handle all that for you. All you do is implement the template methods provided by Component (or others further down if needed). If you look at the existing Ext Components, that is what they do. The only events they fire are the new ones added specifically by that component.
dotnetCarpenter
12 Oct 2007, 3:30 AM
Wow, I missed that. I will look into it but probably for Ext 2.0 instead of 1.*, induced by the poll.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.