PDA

View Full Version : Outline without plus/minus icon



flyingman
20 Aug 2009, 12:32 AM
The ext-Api says for the TreeNode:

expandable : Boolean
If set to true, the node will always show a plus/minus icon, even when empty

my code

},{
region:'west', /* Navigation/Outline - mehrere Outlines möglich */
id: 'west-panel',
xtype: 'panel',
title:'<span style="vertical-align:top;font: 12px; font-family:Arial, VERSAL; color:#003399; font-weight:bold;">' + Ext.nd.Session.currentDatabase.title.toUpperCase() + '</span>',
split:true,
width: 196,
minSize: 196,
maxSize: 196,
collapsible: false,
margins:'10 10 10 10',
layout:'fit',
layoutConfig:{
animate:true
},
defaults: {
target:'center-region',
border: false
},
items: [{
xtype:'xnd-uioutline',
expanded: false,
lines: false,
target:'center-region',
contenEL:'mainDiv',
outlineName:'outNavigation',
showIcons: false
}]
}
The outline shows nevertheless the plus/minus icon. How can I hidden the plus/minus icons?

Thanks

Roland

jratcliff
20 Aug 2009, 6:38 AM
Hmm, good question! So you don't want the +/- icon nor the arrow icons then? Looking at the Ext code I'm not finding any config options to hide the expand/collapse icon. Looks like you get the +/- icons unless you set 'useArrows' to true and then you get arrows for the expand/collapse icons.

I'll dig around the forums to see if someone has come up with an override for this. Otherwise, I guess you can set a custom css rule to not show the expand/collapse icons. Maybe for outlines/trees that you want to do that to just always load the outline/tree in a div with a certain class name and then set your css rule to only apply to that class. Make sense?

flyingman
21 Aug 2009, 2:47 AM
My solution see the attachments