Activate your free membership today | Log-in

Wednesday, June 7th, 2006

Dojo Widgets: Beyond Hello World

Category: Articles, Dojo, Examples, JavaScript, Toolkit

Brian McCallister started to get a bit deeper into Dojo widgets, and kindly decided to fill us in on his work.

In his piece he builds on the new dojo.widget.defineWidget:

JAVASCRIPT:
  1.  
  2. dojo.widget.defineWidget("skife.sample.CommentPane", dojo.widget.HtmlWidget, {
  3.   templatePath: "http://morphy.skife.org/src/dojo-samples/CommentPane.html",
  4.   templateCssPath: "http://morphy.skife.org/src/dojo-samples/CommentPane.css",
  5.  
  6.   /* Default Property Values */
  7.    
  8.   title: "I am a widget named Bob",
  9.    
  10.   postMixInProperties: function() {
  11.     this.strings = {
  12.       title: this.title
  13.     }
  14.   }
  15. })
  16.  

Brian makes the code available for the CommentPane example.

Posted by Dion Almaer at 8:36 am
4 Comments

+++--
3.8 rating from 38 votes

4 Comments »

Comments feed TrackBack URI

I used Dojo for a while, now I use jsLINB. But They are not well documented too.

Comment by David — June 7, 2006

Dojo’s doc is awful.

Comment by nospam — June 7, 2006

fhdfgh

Comment by sdrt — November 16, 2006

test

Comment by Life Insurance — April 18, 2007

Leave a comment

You must be logged in to post a comment.