nanotree
| From: | Tom Anderson | Date: | Wed, 21 May 2003 21:41:25 +0000 |
| Subject: | nanotree | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1478@lists.php.net to get a copy of this message | ||
From nanotree.js: * You have to set a container element, this is the
element in which the tree will be.
This limitation means only 1 tree/page, I believe. I'll code it as such
since I don't think modifying the nanotree.js is a good idea.
It looks like the data should be passed as a multidimentional associative
array.
$data = array(
'subpage 2' => array (
'1st subpage to node 2' => array(
'subpage to subpage of node 2' => array(
'Some Child', 'Some Child', 'Some Child'
),
'2nd subpage to node 2',
'3rd subpage to node 2'
),
'subpage 3' => array(
'Yet another child'
),
'subpage 4'
);
This doesn't allow for non pageIcon's for leaf elements, however.
Any input?
Tom