0

Listcell Empty Space [closed]

asked 2015-02-28 05:37:25 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2611 3 8
http://emrpms.blogspot.in...

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 + ";";
}

image description

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by Senthilchettyin
close date 2015-03-02 04:15:09

2 Answers

Sort by ยป oldest newest most voted
1

answered 2015-03-02 01:51:34 +0800

JustinFrost gravatar image JustinFrost
139 1 6

Have you tried using background-color on the style and not setting the listcell label ?

link publish delete flag offensive edit
0

answered 2015-03-02 04:14:33 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2611 3 8
http://emrpms.blogspot.in...

updated 2015-03-02 04:15:38 +0800

Yes it works

public String getCssHeaderColor() {
    return "background-color:" + this.headerColor + ";";
}

public String getCssContentColor() {
    return "background-color:" + this.contentColor + ";";
}
link publish delete flag offensive edit

Question tools

Follow
1 follower

RSS

Stats

Asked: 2015-02-28 05:37:25 +0800

Seen: 15 times

Last updated: Mar 02 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More