Thursday, February 26th, 2009

Ajaxian Featured Tutorial: Styling Dijit Form Elements

Category: Dojo

The Dijit UI library brings a ton of visual capabilities to the table and I think most people look to it for the power and simplicity of rendering well made user interface components such as grids, modals and calendars. Another aspect that people may overlook is it’s excellent form handling capabilities and in this tutorial, Mike Wilcox walks you through the steps of enhancing the appearance of Dijit form elements:

In this post, I’ll show you how to set up your form with the proper style sheets, and do some minimalist CSS targeting to adjust each form so they’ll all be the proper size. The result will be a style sheet base that you can use and modify to create custom Dijit forms.

The tutorial is squarely aimed at users of the popular Dojo framework and it’s companion UI library, Dijit and will show the flexibility and power of the theming capabilities of the frameworks. The tutorial focuses on creating a form that is styled to look like this using the built-in theming capabilities of Dijit:

While their are many methods of doing this via CSS or other styling frameworks, the advantage for Dojo users is that the capabilities are baked straight into the framework and helps to eliminate some of the overhead of including other frameworks or services as well as learning another framework.

Posted by Rey Bango at 10:25 am
1 Comment

4.1 rating from 28 votes

1 Comment »

Comments feed TrackBack URI

“Baked” is such a heavy word reminiscent of the old Dojo 0.4 codebase.

Comment by Jordan1 — February 27, 2009

Leave a comment

You must be logged in to post a comment.