Dojo 1.0 is now ready
By Vincent DEMAY, Thursday 15 November 2007 :: Dojo :: #90 :: rss
Dojo 0.1 was born novembre 5th 2007 ;). This new release is very close to 0.9 one.
Release was out with a new theme for the dojo webSite
Dojo Now Include (Source SitePen ):
An interesting article was also published on sitePen in order to well understand the new Dojo widget mechanism : Dissecting Dijit

One of the most import stuff in this post is the widget workflow :
Release was out with a new theme for the dojo webSite
Dojo Now Include (Source SitePen ):
- Accessibility
- New grid (away from every table layout problem) [Sample]
- 2D and 3D Charting [Sample] [Tutorial]
- A full library of easy-to-use, attractive UI controls
- Universal data access for simple and fast data-driven widget development
- Internationalization with localizations
- CSS-driven themes to make customization and extension simple
- Dojo Offline, based on Google Gears
- Support for the OpenAjax Alliance Hub 1.0 to guarantee interoperability with other toolkits
- Native 2-D and 3-D vector graphics drawing
- Access to many more widgets and extensions through the Dojo package system
An interesting article was also published on sitePen in order to well understand the new Dojo widget mechanism : Dissecting Dijit

One of the most import stuff in this post is the widget workflow :
preamble()
Originating in dojo.declare, preamble is a new Dojo Core feature. It’s a pre-constructor accessory. By analogy, preamble is to constructor as postMixInProperties is to postCreate. Since preamble gets the same arguments as the constructor, you may extend another object, and jump in front of the constructor and change the arguments.
constructor()
Originating in dojo.declare, constructor has a new usage pattern. Previously, it fired last, which I didn’t find particularly useful nor accurate. It now fires early in the widget lifecycle, allowing early initialization with the arguments passed into the object. While more common in use, it’s not exactly necessary, as Dijit handles the job of converting your arguments into object properties.
postMixInProperties()
Originating in dijit._Widget, postMixInProperties is used more commonly by widget developers. That said, some of its duties are superseded by the addition of constructor and preamble. Its main purpose is firing after the properties have been set, but before the widget has been parsed and created. Pre-creation work on widget properties is typically done in this method.
postCreate()
Originating in dijit._Widget, postCreate is the “heavy lifter” of Dijit. This fires after creation, but before the widget is rendered to the page. At this time in the widget lifecycle, you have access to the widget’s nodes, so additional parsing, connections, styling, or even attaching more widgets is possible.
startup()
Originating in dijit._Widget, startup is somewhat misunderstood. startup doesn’t fire unless the widget is a child of another widget. And then it only fires after it, and all of its siblings have been created. Then they all fire together.
Power by
Comments
1. Le Thursday 15 November 2007 , par Vincent DEMAY
Add a comment