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.