-
FEATURED COMPONENTS
First time here? Check out the FAQ!
How do I define a MVVM driven tree where there are three or more models that could be used to display a tree node?
The standard @template example only allows for two options, like:
<tree model="@load(hierarchyModel) @template(each.titleOnly ? 'titleOnly' : 'twoPart' )">
Hello davout, sorry, for the late reply. I would write it as follows
<tree model="@load(hierarchyModel) @template(each.titleOnly ? 'titleOnly' : (each.whatever ? 'twoPart' : 'nextPart'))">
Hope this helps.
Kai
Asked: 2012-10-01 10:26:28 +0800
Seen: 70 times
Last updated: Oct 10 '12