SoftDrawer.com
Home | Products | Services | Downloads | Order | Contacts
Home Email us

 

Products  > SoftDrawer jsTree  > Demos  > Different image sets and multiple trees on one page

If you want to use folder images in the menu you need to define path to image files (SRC attribute of IMG tag) using following parameters.

  • e_image - expanded folder
  • c_image - collapsed folder
  • i_image - document (if node don't have children)
  • b_image - transparent 1x1 gif image (used for indentation)
Example:
var TREE_NODES={
format:{
...
e_image:"images/fo_p.gif",
c_image:"images/fc_p.gif",
i_image:"images/i_p.gif",
b_image:'images/b.gif',
...

By default image size is 32x16. If you use images with other size you may define size by img_size attribute. Example:
var TREE_NODES={
format:{
...
img_size:[24,24], //[width, height]
...


Standard Navigation Tree
 
Copyright © 1999-2003 SoftDrawer.Com Login