如何控制zkoss中列表项的流程 [英] how to control over flow of list item in zkoss

查看:176
本文介绍了如何控制zkoss中列表项的流程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何一个指导我如何控制列表项的溢出。在代码标签操作指令中有一个客户的缺省指令,并且当我恢复下来窗口时,我应用maxlength =40,然后操作指令显示两行或更多行,我想它将只在单行

Can any one guide me how to control overflow of list item. In code label "Operation Instruction" having a breaf instruction of a customer and i applied maxlength="40" when i restore down window then "Operation Instruction" shown two or more lines and i want it will be in single line only

<east id="eastcr" width="70%" autoscroll="true" visible="false" style="overflow:auto">
<groupbox>
    <caption label="Select Account"></caption>
    <separator></separator>
    <listbox id="lstbx" style="overflow:auto" mold="paging">
        <listhead id="lsthd" sizable="true" >          
        <listheader id="lsthd1" label="Sr No" align="center" width="5%" sort="auto"/>
        <listheader label="Account Number" align="center" width="15%" sort="auto"/>  
        <listheader label="Account Name" align="left" width="25%"  sort="auto" maxlength="20"/> 
        <listheader label="Operation Instruction" align="left" width="39%" sort="auto" maxlength="40"/>  
        </listhead>       
    </listbox>
</groupbox> </east>


推荐答案


$ b

Yo can use below style

style="white-space: nowrap;"

这是什么意思?


nowrap 空格序列将折叠成一个空格。文本将永远不会换行到下一行。文本在同一行上继续使用
,直到遇到
标记

nowrap Sequences of whitespace will collapse into a single whitespace. Text will never wrap to the next line. The text continues on the same line until a
tag is encountered

这篇关于如何控制zkoss中列表项的流程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆