-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I am creating ListGroup like this
<listgroup>
<zk forEach="${groupNameList}">
<zk if="${each != '' || 'Paid' || 'Cancelled'}">
<zk if="${c:startsWith(each,'Outstanding')}">
<listcell>
<label value="${each}" style="font-weight:bold;font-size:13px;color:red;"></label>
</listcell>
</zk>
<zk if="${c:startsWith(each,'Date')}">
<listcell span="2">
<label value="${each} "></label>
</listcell>
</zk>
<zk if="${c:startsWith(each,'Due')}">
<listcell span="2">
<label value="${each} "></label>
</listcell>
</zk>
<zk if="${c:startsWith(each,'Bill')}">
<listcell>
<label value="${each}"></label>
<custom-attributes a="${each}" />
</listcell>
</zk>
</zk>
<zk if="${c:startsWith(each,'id')}">
<listcell>
<custom-attributes billNum="${each}" />
<div class="btn-group" style="height:20px;">
<actionmenu>
<actionmenugroup title="Options" accesskey="a" btncolor="btn-link"
btnstyle="padding: 0px 0px 5px 0px;" menupull="left">
<actionmenuitem label="@load(vm.getText('AccountBillFeeDetail:CB_BILL_REPORT'))"
onClick="@command('printBill',billNumber = billNum)" iconclass="fa fa-print" accesskey="a">
</actionmenuitem>
<actionmenuitem label="@load(vm.getText('AccountBillFeeDetail:CB_ADJUST'))"
onClick="@command('adjustBill',billNumber = billNum)" tooltiptext="@load(vm.getText('AccountBillFeeDetail:CB_ADJUST'))"
iconclass="fa fa-trash">
</actionmenuitem>
<actionmenuitem label="GL Info" onClick="@command('showGlInfo',billNumber = billNum)" iconclass="fa fa-refresh"
accesskey="r">
</actionmenuitem>
<actionmenuitem label="Fee Parms" onClick="@command('showFeeParms',billNumber = billNum)"
tooltiptext="Fee Parms">
</actionmenuitem>
</actionmenugroup>
</actionmenu>
</div>
</listcell>
</zk>
<zk if="${each eq 'Paid'}">
<listcell>
<label sclass="badge badge-success" value="Paid"
style="font-family: Arial,Sans-serif;font-size: 12px;font-weight: normal;">
</label>
</listcell>
</zk>
<zk if="${each eq 'Cancelled'}">
<listcell>
<label value="Cancelled" style="font-family: Arial,Sans-serif;font-size: 12px;font-weight: normal;"
sclass="badge badge-success">
</label>
</listcell>
</zk>
</zk>
</listgroup>
</template>
Now i want to change the color of whole Listgroup color on some condition How to do it?
I have done be override css like this
.feegroupred .z-listcell.z-listgroup-inner .z-listcell-content{ background: none; } .feegroupred
.z-listcell.z-listgroup-inner .z-listcell-content{ background-image: none ; background-color: #f2dede;}
Asked: 2015-02-10 11:17:17 +0800
Seen: 17 times
Last updated: Feb 13 '15
ZK 7.0.3 doAfterCompose is not called for GenericForwardComposer
Power of ZK Calender With Charts 2 and Other Components
ZK7 atlantic theme: vlayout/hlayout spacing
Structuring zul-code without includes?
css zk 7.0.3 with ie9 not work
Change listbox MVVM template with Java or how to let user change column order
style="@load(c:startsWith(each,'Outstanding')?'font-weight:bold;font-size:13px;color:red;':'font-family: Arial,Sans-serif;font-size: 12px;font-weight: normal;')"
chillworld ( 2015-02-10 12:17:15 +0800 )editHi Chillworld I have to change the style of whole Listgroup and not a Single cell
sjoshi ( 2015-02-10 12:55:23 +0800 )editlistgroup does have the style attribute, doesn't work that?
chillworld ( 2015-02-10 13:13:23 +0800 )editYes but data we will get inside ListGroup not out of Listgroup c:startsWith(each,'Outstanding') for more referene added image as well
sjoshi ( 2015-02-10 13:23:06 +0800 )editwhat is the condition then?
chillworld ( 2015-02-10 13:56:03 +0800 )edit