I've been searching for an answer to this already. The example suggested above with regards to the dWin, still only provides a lazy render example (using xtype). Sadly nowhere is there an example of something like var # = new DatePickerPlus.I have tried the abysmal ExtJs forums (not a good place to get any coherent answers at all). Sadly there is no standard for ux plugin makers to provide a comprehensive API for there plugins (though there indeed should be). Most of the time they whack out what looks like a fairly good plugin, show some working demos, but expect the rest of us to figure it all out from the mess of source code they use, its very frustrating, and time consuming.
In my particular example, I wish to dynamically render a datepickerplus, based on some parameters for some of the properties fields. I do this by creating a variable to hold the datepicker object and assigning it a new datepicker with the parameters. I then try to add it to a panel with #panel.add(#datepicker), but if apparently wont work like that. However there is no guidance on this way (construction via a proper constructor methodology) only lazy rendering with xtype. So any soul here on stackoverflow I would be happy for some help!