PDA

View Full Version : new TreePanel



alex1er
8 Jan 2007, 4:32 AM
Hello.

I'de like to know if it will be possible to do the following with the new TreePanel :

- Set icon or not
- Set differents icons for node in the same 'folder'
- Set the icon on the left or on the right of the text
- Have checkbox in the node
- Have multiselection enable in a same 'folder', in order to select many node and create with them a new node with those items.


Thanks for response and Happy new year!

TommyMaintz
8 Jan 2007, 9:31 AM
- Set icon or not
- Set differents icons for node in the same 'folder'
- Set the icon on the left or on the right of the text

These three things can all be achieved with css and classnames i suppose

- Have checkbox in the node
- Have multiselection enable in a same 'folder', in order to select many node and create with them a new node with those items.

This i dont know if possible with the new tree, havent checked out the tree component really well actually, but if they are not supported, i think they are easy to create with the functions that are available in the tree component.

Btw, i dont think a checkbox in the tree will give you alot of trouble. Don't see what it can break at first thought

jack.slocum
8 Jan 2007, 10:31 AM
Tri-state checkboxes are planned.

Icons are done through css and/or an "icon" attribute on the node. An icon attribute has priority over a css background image, as it becomes the source for the img.

You can add a css class to a node with the cls attribute.

See the examples, every one of them has css in the page for setting node icons.

There is a multi-selection model, but multi-drag drop is not supported currently.