Hi,

Am 14.02.2006 22:47, Oliver Vogel schrieb:
@sebastian

Sorry, it's not Sebastian, but I'll tell you nonetheless ;)

is it now possible to have a "user-defined" icon for each node in the tree
(some weeks ago it was not)

The appearances "tree-icon", "tree-folder-icon" and "tree-element-icon" are your friends here. If you look at the code for "tree-element-icon" in the default theme, you'll find that the code is pretty self-explanatory.

<code>
theme.registerAppearance("tree-element-icon",
{
  initial : function(vWidget, vTheme)
  {
    return {
      width : 16,
      height : 16,
      source : "icons/16/file-new.png"
    };
  }
});
</code>

Cheers

Benjamin


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to