You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by John <jo...@quivinco.com> on 2012/12/31 11:35:56 UTC
customising t:tree icons
I'd like to be able to choose the icon (css class) of individual tree nodes in my model.
Is that possible? I have a number of different node types and want to choose other than the directory/file icons that the tree component comes with out of the box.
John
Re: customising t:tree icons
Posted by Lance Java <la...@googlemail.com>.
You might need to raise a jira for this. There's a TODO in the TreeNode
source:
// TODO: Some way to influence the rendered output (i.e., to display
different icons based on file type).
As a workaround, you could hide the existing icons and provide "label" and
"value" parameters to the tree. The tree will update the "value" binding for
each node and use the "label" block to draw each tree node.
--
View this message in context: http://tapestry.1045711.n5.nabble.com/customising-t-tree-icons-tp5719071p5719075.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org