Cruiser
30 Nov 2010, 1:59 AM
How can i set a folder icon for a tree node which has no childrens? If i write this data for a TreePanel
children: [{
text: 'Menu Option 1',
leaf: true
}, {
text: 'Menu Option 2',
leaf: true
}, {
text: 'Menu Option 3',
leaf: false
}]
i will get for "Menu Option 1" and "Menu Option 2" a file icon and for "Menu Option 3" a Directory icon. But i will get a folder icon just for "Menu Option 3" even tough it has no children. Besides it should not show me this little expand Symbol on the left of the node.
Is this possible, or will i ever have this expand button on the left and have to click on it?
Thanks.
children: [{
text: 'Menu Option 1',
leaf: true
}, {
text: 'Menu Option 2',
leaf: true
}, {
text: 'Menu Option 3',
leaf: false
}]
i will get for "Menu Option 1" and "Menu Option 2" a file icon and for "Menu Option 3" a Directory icon. But i will get a folder icon just for "Menu Option 3" even tough it has no children. Besides it should not show me this little expand Symbol on the left of the node.
Is this possible, or will i ever have this expand button on the left and have to click on it?
Thanks.