-
FEATURED COMPONENTS
First time here? Check out the FAQ!
For one of the colums, i want to show the empty space as available in html here
The purpose is that particular contains the color code, so i want to display the color bar instead of text. I am able to show the color with the color code text. I just want to display only the color bar without color code.
<listbox id="" mold="paging" paginal="${pagenavi}"
sclass="mylist" selectedItem="@bind(vm.selectedItem)"
model="@load(vm.dataSet)">
<listhead sizable="true">
<listheader label="Type Name"
sortDirection="ascending" sort="auto(typeName)" />
<listheader label="Description"
sort="auto(description)" />
<listheader label="Header Color"
sort="auto(description)" />
<listheader label="Action" />
</listhead>
<template name="model" var="p1">
<listitem
>
<listcell label="@load(p1.typeName)"
onClick="@command('onlinkOpen',notes=p1)"
sclass="highlightcell" />
<listcell label="@load(p1.description)" />
<listcell label="@load(p1.headerColor)" style = "@load(p1.cssHeaderColor)" />
Bean Code
public String getCssHeaderColor() {
return "color:" + this.headerColor + ";";
}
Have you tried using background-color on the style and not setting the listcell label ?
Yes it works
public String getCssHeaderColor() {
return "background-color:" + this.headerColor + ";";
}
public String getCssContentColor() {
return "background-color:" + this.contentColor + ";";
}
Asked: 2015-02-28 05:37:25 +0800
Seen: 15 times
Last updated: Mar 02 '15