11681Re: How can I add a trash icon to a Tree List?
- Apr 3, 2007Try this:
background: transparent url( lib/icons/trash.png ) no-repeat;
this is with a picture that is 16 x 16 pixels. Change the padding and
picture location to fit your needs, then add the class to the tree you
want like this...
var trash = new YAHOO.widget.TextNode( trashConfig, parentNode, false );
important--> trash.labelStyle = 'icon-trash';
It should work in both IE and FF, I tested both.
- << Previous post in topic