First time here? Check out the FAQ!
hello everyone
i am working on a project using ZK , what i want to do now is to create a menu using Navbar componant from a List from my ViewModel .
but i didnt know how to do it , here is a static example of my navBar menu
<navbar width="160px" id="navbar" sclass="nav-list" orient="vertical">
<navitem label="Dashboard" iconSclass="z-icon-dashboard" />
<navitem label="Typography" iconSclass="z-icon-text-width"/>
<navitem label="Typography2" iconSclass="z-icon-text-width"/>
<navitem label="Typography3" iconSclass="z-icon-text-width"/>
</navbar>
what i want to do is to fell those navitem from a List in my view-model
can u help me pls?
You have to use the foreach in zk.
More info also here :
http://books.zkoss.org/wiki/ZK_Developer's_Reference/MVVM/Advanced/Binding_in_Special_Attribute#The_.22forEach.22_Versus_Children_Binding
Greetz chill.
Asked: 2014-08-03 06:00:36 +0800
Seen: 21 times
Last updated: Aug 03 '14