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

Brian makes the code available for the CommentPane example.

Posted by Dion Almaer at 8:36 am
4 Comments

+++--
3.7 rating from 43 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.