defineWidget - JotSpot Wiki (dojo)
The Dojo team has cleverly defined their architecture in such a way that defineWidget can take HTML, SVG, and other renderer types when defining a new widget. So a widget developer can elect to support a couple different renderers for a component.
When a user sidles up to a web page using that component, Dojo can sniff what browser he is using to view it, assess its capabilities, and choose the right renderer to render that component in the best way possible.
Here is something from the Dojo wiki that helps clarify that a little. To really understand, go to its page, and read the whole page so you can get the context - and the examples.
defineWidget - JotSpot Wiki (dojo):
Widgets can have different versions for different renders. (In practical terms, this means that there can be an SVG version of a widget for Firefox, and a VML version for IE)


0 Comments:
Post a Comment
<< Home