I have a Tree element with MultiSelect mode, which looks good with checkboxes in every tree item. I wanted to make it so if I select one item, all of its children get selected as well. I have the tree in the view:
<Tree selectionChange="onPress" itemPress="onPress" includeItemInSelection="true" mode="MultiSelect" items="{path: '/'}" id="Tree">
<headerToolbar>
<Toolbar>
<content>
<Title level="H2" text="Title"/>
<ToolbarSpacer/>
</content>
</Toolbar>
</headerToolbar>
<StandardTreeItem title="{text}"/>
</Tree>
I wanted to know if SAPUI5 had a property for its trees like "Check Children" or something similar. And if not, how could I do it.
Thanks.
renderNodemethod in thesap.ui.commons.TreeRendererclass to display that checkbox when needed