0

Cahnge ListBox style

asked 2008-12-23 16:32:12 +0800

YamilBracho gravatar image YamilBracho
1722 2

Hi.
I would like to add horizontal lines to my listbox. It is possible ? If so, how ?

TIA
Yamil

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2008-12-26 04:12:28 +0800

PeterKuo gravatar image PeterKuo
481 2

You may do it by assigning your own css.
Please search <style> in http://www.zkoss.org/doc/devguide-single/index.html
And you can use firebug to findout which selector to use.

<window>

<style>
div.z-list-cell-cnt{
border:3px solid;
}
</style>

<zscript>contacts = new String[] {"Monday", "Tuesday", "Wednesday"};</zscript>
<listbox width="100px">
<listitem label="${each}" forEach="${contacts}"/>
</listbox>
</window>

link publish delete flag offensive edit

answered 2008-12-26 13:24:38 +0800

YamilBracho gravatar image YamilBracho
1722 2

It works like charm
Thanks Peter

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2008-12-23 16:32:12 +0800

Seen: 113 times

Last updated: Dec 26 '08

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