diff --git a/Component_Reference/src/main/docbook/en-US/Component_Reference.asciidoc b/Component_Reference/src/main/docbook/en-US/Component_Reference.asciidoc index f3c1b5cb..8e19c181 100644 --- a/Component_Reference/src/main/docbook/en-US/Component_Reference.asciidoc +++ b/Component_Reference/src/main/docbook/en-US/Component_Reference.asciidoc @@ -5576,9 +5576,44 @@ image::exam-Component_Reference-tree-nodeType_attribute.png[] ==== -If the [varname]+nodeType+ attribute returns null, the node is rendered as a " _typeless_" (or default) node. The _typeless_ node is the first child [sgmltag]++ component with a valid [varname]+rendered+ attribute, but without a defined [varname]+type+ attribute. +===== Default nodes -If the [varname]+nodeType+ attribute is not included and there are no child [sgmltag]++ components, the tree constructs a default node itself. +If the [varname]+nodeType+ attribute returns null the nodes are rendered as " _typeless_" (or default) nodes. +Setting _useDefaultNode="true"_ the default nodes can be used to render nodes that do not match with the provided treeNodes. + +.Default treeNode +==== + +[source, XML] +---- + + + + + + +---- + +Only type="artist" is set up, other nodes ("album" and "song") will be created using the default treeNode. + +[source, XML] +---- + + + + + + + + + + + +---- + +The appearance of the default treeNode can be changed by using a facet named +defaultNode+. + +==== Icons for different nodes and node states can be defined for the whole tree using the following attributes: