-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
This is my tree code:
<tree id="tree" model="@bind(vm.tree)" mold="paging" pageSize="6"
visible="@bind(vm.displayTree)" >
<treecols>
<treecol label="" />
</treecols>
<template name="model" >
<treeitem open="true">
<treerow >
<treecell >
<button sclass="without-border"
iconSclass="z-icon-search-plus"
onClick="@command('edit',id=each.id)">
</button>
<confirm title="${labels.confirm.label}"
sclass="btn-bordertransparent"
message="${labels.confirm.message}"
iconSclass="z-icon-trash-o icon-black"
onYes="@command('delete',id=each.id)">
</confirm>
<label>${each}</label>
</treecell>
</treerow>
</treeitem>
</template>
</tree>
tree is the TreeModel coming from backend. I'm not able to expand the whole tree when this page loads. open="true" on treeitem isn't working. Kindly help.
2 | No.2 Revision |
This is my tree code:
<tree id="tree" model="@bind(vm.tree)" mold="paging" pageSize="6"
visible="@bind(vm.displayTree)" >
<treecols>
<treecol label="" />
</treecols>
<template name="model" >
<treeitem open="true">
<treerow >
<treecell >
<button sclass="without-border"
iconSclass="z-icon-search-plus"
onClick="@command('edit',id=each.id)">
</button>
<confirm title="${labels.confirm.label}"
sclass="btn-bordertransparent"
message="${labels.confirm.message}"
iconSclass="z-icon-trash-o icon-black"
onYes="@command('delete',id=each.id)">
</confirm>
<label>${each}</label>
</treecell>
</treerow>
</treeitem>
</template>
</tree>
tree is the TreeModel coming from backend. I'm not able to expand the whole tree when this page loads. open="true" on treeitem isn't working. Kindly help.