tree counts

Hi,

I am using the tree widget for displaying a taxonomy and I’d like to have a count next to each item that is not part of the text for the item. Is this possible or do i need to use the text field in the xml?

for example:
Soup (6)
Cambells (2)
Chunky (1)

0r this is fine too:
(20) Ice Cream
(5) Vanilla
(10) Butterscotch

-bobo

Hi,

PRO edition provides setChildCalcMode:

docs.dhtmlx.com/doku.php?id=dhtm … ldcalcmode

The template can be defined by setChildCalcHTML method docs.dhtmlx.com/doku.php?id=dhtm … ldcalchtml

tree.setChildCalcMode("child");
tree.setChildCalcHTML("(",")");