[Dojo-interest] widgets, template and css
Eril Kaleo
eril.kaleo at yahoo.com
Tue Jun 1 02:58:40 EDT 2010
Hello,
We'are developing a widget based application, thus the whole think is quite dynamic.
Most of our widgets have templateString's and css. So we created a base widget class for our domain foo
inheriting from [dijit._Widget, dijit._Templated, foo._CssEngine]
We like to see widgets as independent and compound elements. So we thought that apart from overall styles
every widget should have its own css. _CssEngine is basically managing <link rel="stylesheet" ..> tags.
It works like a naive implementation dojo.require(...)
So I wonder what is the rational or reasons behind leaving css out of dijit? Why css isn't conceived like a structural part of a widget?
The closest thing is the style property of _Widget class, but than again, to be sure that it's set before the widget is loaded is quite cumbersome...
Regards.
More information about the Dojo-interest
mailing list