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.
- 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
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.