[Dojo-interest] Re: Subwidgets
Sol Kindle
kindsol at hotpop.com
Mon Apr 3 12:26:14 MDT 2006
>
Can someone point me in the right direction?
I want to include the DatePicker as a sub-widget in my custom widget. Is
there any documentation/examples/advice that you could point me to that might
help me with this?
I am not sure if I should:
1)include the sub-widget as part of my template (not working as of yet),
or
2)instantiate the sub-widget as part of my fillInTemplate() function and
then insert the widget into my DOM tree. If so, what method should I use to
insert the widget? innerHTML?
Sorry if this is painfully obvious to everyone.
Thank you for your time!
-Sol
Derksen, Ron <RDerksen <at> CHELLO.com> writes:
>
> This sounds like what I'd need. Could you, or someone else, post a more
> elaborate example of this? I've been trying this based on the example that's
> in the wiki (WidgetFAQ page), but haven't had much success yet.
> Ron Derksen
>
> -----Original Message-----
> From: dojo-interest-bounces <at> dojotoolkit.org
> [mailto:dojo-interest-bounces <at> dojotoolkit.org] On Behalf Of Derksen, Ron
> Sent: Thursday, March 30, 2006 8:15 AM
> To: 'dojo-interest <at> dojotoolkit.org'
> Subject: [Dojo-interest] Subwidgets
>
> Hi,
>
> I'm working with Dojo for the first time now, and I'm starting to grasp how
> it works. However, one thing that I would like to do, seems to fail: what I
> want, is a superwidget that is built out of several smaller widgets. And I
> want to make it so that if I want to use this widget, I can just add one
> single tag to my html-code. I hope this is making sense?
>
> So, e.g. this is my HTML:
> <body>
> <div dojoType="uberwidget"></div>
> </body>
>
> And the end result would be like:
> <body>
> <div dojoType="uberwidget">
> <div dojoType="widget1"> </div>
> <div dojoType="widget2"> </div>
> <div dojoType="widget3"> </div>
> </div>
> </body>
>
> Is this possible with Dojo, and if so, how do I set it up in the code?
>
> Thanks in advance,
> Ron Derksen
More information about the Dojo-interest
mailing list