Loading ...
Sorry, an error occurred while loading the content.

11681Re: How can I add a trash icon to a Tree List?

Expand Messages
  • bruskuta
    Apr 3, 2007
    • 0 Attachment
      Try this:

      .icon-trash
      {
      padding-right: 18px;
      background: transparent url( lib/icons/trash.png ) no-repeat;
      background-position: right;
      }

      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.
    • Show all 2 messages in this topic