[Dojo-interest] What do you use Grid for?

Dustin Machi dmachi at dojotoolkit.org
Fri Dec 21 19:16:29 UTC 2007


> 
> Fortunately, I've come up with a possible solution :)
> 
> In principle it would be fairly easy (ok, moderately) to make a new dijit
> which mixes in Grid and which creates its of HtmlTableStore, and with just
> one div entry in the actual code, provide the same polished just-what-I-need
> functionality as the old (fairly well working) SortableTable did.
>

I think there are a few plans for something similar happening now.
Basically allowing all widgets that use dojo.data as a source provide
markedup version of the data. In the case of a combobox its <option>
tags, and in the case of table UL/LI, and a table would of course make
sense here.


> I could do it now if I knew how to use .. hmm, actually I think I could do
> it. Maybe :)  Give me the week and I see what Ic an do. I'm kind of
> flummoxed that you can't actually use existing dijit's inside the template
> of a new dijit you're creating. In this particular case it will probably not
> be needed, though.
> 

I'm not sure I follow what you mean by "use existing dijits inside the
template of a new dijit".

Does this mean already existing instances of a widget or including
widgets in your new widgets template.  The former I'm not sure makes
sense, but you could write code that moves and existing node into your
template after it has been created.  The latter does work and simply
requires the widgetsInTemplate property to be set to true when using the
_Tempalted mixin.

Dustin



More information about the Dojo-interest mailing list