-
FEATURED COMPONENTS
First time here? Check out the FAQ!
How can I change the style of a label with onClick? I have a listcell with a label and I would like to change the color of the label when doing onclick.
<listcell style="border: 1px solid lightgray; text-align:right" onclick="@command('showPurchaseOrderLines', tabbox = tabbox, purchaseOrder = each)"> <label value="@load(each.idPurchaseOrder)" style="font-size:12px; font-weight: bold; color: #009246"/> </listcell>
Thank You.
Try this
1) insert the new style property in the purchaseOrder
2) in the zul change style="@load(each.style)"
3) in the command showPurchaseOrderLines, set new label style as follows:
purchaseOrder.setStyle("font-size:12px; font-weight: bold; color: #009246"); BindUtils.postNotifyChange(null, null, purchaseOrder , "style");
Asked: 2017-07-24 10:56:31 +0800
Seen: 20 times
Last updated: Jul 24 '17
How to do ${c:l(@load(vm.name)} correctly?
how to specify line break in label. [closed]
Label text does not wrap in a "scrollview"
How to include a single special utf-8 character in a treecol label string?
Placeholder with phonemasking in IE11 Browser not working
how to change the style of portion of Label's value
How to get a label value for all the different international label file?