PDA

View Full Version : Namespace for User Extensions



jsakalos
13 Jun 2007, 3:18 PM
Hi community,

it will happen sooner or later that talented Ext users will create extensions (extension classes) that will be very usable a interesting for others. I was a bit concerned about possible namespace conflicts so I pm-ed it to Jack and he responded that he would recommend namespace:

Ext.ux (ux stands for User extension)

I like the idea very much and abbreviation too. :)

The code prefix of such user extension would be then:




Ext.namespace('Ext.ux');

// and here comes the extension

Ext.ux.MyNewNiceExtension = function(.....) { .... };

This won't prevent the possible name collisions fully but at least the user extensions won't collide with Ext namespace that should remain fully under Jack's control. Of course, we as the community can have a list on this forum with already taken names. If you'll like the idea please know that I have taken names:

Ext.ux.InfoPanel
Ext.ux.Accordion

from this namespace.

efege
13 Jun 2007, 4:36 PM
it will happen sooner or later that talented Ext users will create extensions (extension classes) that will be very usable a interesting for others.

Oh, yes, it is certainly happening already :D


Ext.ux (ux stands for User extension)

I like the idea very much and abbreviation too. :)

Good idea.


Of course, we as the community can have a list on this forum with already taken names.

I'd suggest the wiki as a better place to keep an updated list, though announcements should probably be made on the forums anyway.

EDIT: JorisA, we should merge posts :P

JorisA
13 Jun 2007, 4:39 PM
Good idea!
It was requested before in the wiki thread, but maybe it would be nice to have a 'User Extensions' namespace on the wiki as well. I think that would be a good place to keep track of the ux namespace. (and the user extensions itself)

edit: efege beat me :P

jsakalos
13 Jun 2007, 9:25 PM
Good efege & JorisA,

can you put this posts to wiki then?

I still have to learn how to edit wiki pages ;)

mystix
13 Jun 2007, 10:40 PM
i second / third / fourth / fifth this. :D

great suggestion jsakalos.

JorisA
14 Jun 2007, 3:53 AM
http://extjs.com/learn/Manual:UserExtensions:NameSpace
I requested a template for user extensions (with autor/version/demo url etc).
You might want to manage your accordion widget there to. I think its a good place to keep your latest version/changelog and so. Ill do the same for the menubar widget.

jon.whitcraft
14 Jun 2007, 4:28 AM
http://extjs.com/learn/Manual:UserExtensions:NameSpace
I requested a template for user extensions (with autor/version/demo url etc).
You might want to manage your accordion widget there to. I think its a good place to keep your latest version/changelog and so. Ill do the same for the menubar widget.

Guys can you hold of posting for now till i get the wiki set up with a new location to post all of these. I'm working on it right now and I'll post back here when i get it done.

Thanks!!

JorisA
14 Jun 2007, 4:36 AM
Ok will do.
Thank you!

jon.whitcraft
14 Jun 2007, 5:11 AM
Ok guys.

I added the Extension namespace, create a posting how to and moved over all the current content.

http://extjs.com/learn/Ext_Extensions

Go wild but please do not remove the disclaimer.

Enjoy and have at it.

mystix
14 Jun 2007, 5:23 AM
thanks for the quick job jon. :)

p.s. corrected some typos in the disclaimer. pls modify it if it's incorrect / unsuitable

jon.whitcraft
14 Jun 2007, 5:33 AM
thanks for the quick job jon. :)

p.s. corrected some typos in the disclaimer. pls modify it if it's incorrect / unsuitable

By all means thanks. I'm a coder so if it's not code i can't spell it... :s