9 February 2007

New version of DWT released

I've just released version 0.2.1 of Domino Web Tools (DWT). The UI stuff that Jack Slocum is doing is simply amazing so if you like what I'm doing with integrating it into Domino then please go over to his site and give a little donation. So what's new in this release you ask? Well, let me tell you...

For starters, take a look at the live demo to get an idea of how the UI is looking thus far. This demo easily highlights the UI portion of DWT. Remember, DWT's goal is to provide UI components/widgets AND JavaScript classes to access and work with Domino Objects (like session, document, view, etc.). I'll talk more about the JavaScript classes at a later date. For now, I've been working mostly on the UI stuff. In this release I have started down the path of developing custom classes to handle the UI stuff. To make sure the DWT code doesn't clash with any of your code, I have decided to copy the YAHOO (and others) style of using a global object to provide a single global namespace where all of the DWT code can reside. The global object for DWT is.....you guessed it, "DWT".

So, for the 0.2.1 release, I have introduced the following classes:

  • DWT.widget.DominoUI
  • DWT.widget.DominoUIOutline
  • DWT.widget.DominoUIView

I haven't really tested using the DominoUIOutline and DominoUIView by themselves but I do have them working within the context of DominoUI. So, for instance, if you have a page that you want to include an outline on the left and a view on the right, all you would need is the following JavaScript in your JS Header or a separate JS file.


var myApp = new DWT.widget.DominoUI({
	outlineUrl: "mainOL",
	viewUrl: "($formulaExamples)",
	viewTitle: "Formula Examples"
});	

YAHOO.ext.EventManager.onDocumentReady(myApp.init, myApp, true);

When the document is ready, the init method will be called and the UI built. Cool, don't you think? Anyway, it's late now, so I'll talk more about this later. In the meantime, go download this release and let me know what you think.

No Comments Found

Add a new comment

(not displayed)
Remember Me?