java - ZK iterate through list of lists -
i'm totally new zk framework , i'm not sure if info i've provided plenty or not.
i'm aware that, if there fixed number of categories, in .zul
file - each groupbox
, listbox
can displayed.
currently, have list of users beingness displayed categorically i.e there dynamic number categories , each category has dynamic number of users. beingness implemented , displayed using vlayout
.
there requirement if there more 10 users in each category, should display 10 users , provide button (or similar) display more users in same category.
my questions are-
is possible accomplish requirement usingvlayout
? if not, can iterate through list of groupbox
s display listbox
(list of users) each groupbox
(category) in .zul
file? or there simpler / more efficient way of achieving requirement? any suggestions much appreciated.
yes, can refer article utilize "foreach" , "if" tag vlayout or listbox.
for example,
<template name="tree"> <foreach items="@load(vm.authors)" end="10" var="author"> <vlayout> // omitted </vlayout> </foreach> <if test="@load(not empty vm.authors , vm.authors.size() gt 10)"> <span>more...</span> </if> </template>
java listbox zk groupbox zul
No comments:
Post a Comment