sridhars711 / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

Posibility to specify a icon for root note #80

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is a feature request.

A way to specify the icon for the root note, or having a css rule only for
the root.

Right now I style the ".ui-dynatree-folder.ui-dynatree-expanded 
span.ui-dynatree-icon" rule, and it works mostly, except in IE6.

Original issue reported on code.google.com by peterlin...@gmail.com on 23 Feb 2009 at 8:49

GoogleCodeExporter commented 9 years ago
The root span has the special Id: ui-dynatree-id-root  
It should be possible to modify the css like this:
#ui-dynatree-id-root span.ui-dynatree-icon
{
  background-image: url("custom.gif");
}

(Note: currently the ID is in fact "ui-dynatree-id-ui-dynatree-id-root", but I 
will
fix that in the next release.)

Original comment by moo...@wwwendt.de on 23 Feb 2009 at 5:43

GoogleCodeExporter commented 9 years ago
Ah okay, i dident notice. That will do then. thanks

Original comment by peterlin...@gmail.com on 23 Feb 2009 at 10:08

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 24 Feb 2009 at 7:02

GoogleCodeExporter commented 9 years ago
If iam having multiple trees on the same pages, will this not be a problem, 
that the
root has a unique ID?

I would like to have 3 trees with 3 different root notes?

Should the id of the root note not be prefixed by the container or something?

Original comment by peterlin...@gmail.com on 25 Feb 2009 at 8:49

GoogleCodeExporter commented 9 years ago
try the 'idPrefix' option

Original comment by moo...@wwwendt.de on 25 Feb 2009 at 8:27

GoogleCodeExporter commented 9 years ago
doh. thanks.

Original comment by peterlin...@gmail.com on 25 Feb 2009 at 8:30