SOS

Shane O'Sullivan's technical blog… really ties the room together

Dijit Tree now ultra-stylable

Posted by Shane O'Sullivan on October 1, 2009

The Dojo Tree has always been easy to make look just like you want, from changing the icons to changing the labels.

However there was always a limitation in that an entire row could not be styled.  Well, today I put through a fix for that, and you can now specify a CSS class and style for each row using the getRowClass and getRowStyle functions.

You can see a simple test of this at http://archive.dojotoolkit.org/dojo-2010-06-01/dojotoolkit/dijit/tests/tree/test_Tree_Styling.html , available from Oct 2nd 2009, and it’ll be included in version 1.4, which goes into beta any day now.  It shows how you can easily make the tree appear like an expandable, nestable list widget, with just a tiny bit of CSS.

I also plan on writing up a number of dojo.cookie articles over at dojocampus.org in the coming weeks on all the cool things you can do with the tree.

treeStyle

About these ads

7 Responses to “Dijit Tree now ultra-stylable”

  1. Eike said

    The URL is down, I can’t look *scream* *just nervous* *tipping with my fingers on the desk* What should I do … I can’t reach the URL ?

    Sincerly,
    Eike

  2. The URL is working now, just try again :-)

  3. Cristian Raducanu said

    The page is not up any more. Can you please fix it once again?

  4. Hmm, it looks like someone removed the page from the tests. Damn

  5. Cristian R said

    No problem! Thank you! Is there anywhere a code snippet to show how you used the function?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

Join 533 other followers

%d bloggers like this: