-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi.
I have a listbox with columns and some columns needs to be multiline. To solve this I use this code:
<listheader hflex="min" align="center" label="Text in a single line" />
<listheader hflex="min" align="center">
<label multiline="true"
value="@load(vm.columnValue)">
</label>
</listheader>
And in the view model I have:
private String columnValue = "Text in first line \n text in second line";
This works fine and I show the column with multiline value but my problem is when i need to filter the listbox columms. My listhead has:
<listhead sizable="true" menupopup="auto">
and when i click in the small arrow in the colum to show all column name and filter some columns i don`t see the labels for multiline columns. I see two checkbox, first one with value "Text in a single line" and second without any text.
Do you have any idea to help me to solve the problem ? I need to see multiline values in the menu popup to filter columns
please see the example http://zkfiddle.org/sample/2h27u86/2-listheader-with-line-break
key points:
white-space: pre;
Asked: 2020-01-30 19:34:48 +0800
Seen: 6 times
Last updated: Feb 05 '20
[ZK8.6 Preview] New media components coming soon!
Bug in Datebox with lenient=false and value 01.04.1981?
javascript cannot catch id of zul component. Please help.
failed to utilize getTop(), getLeft() on div(component). Please help.
Serving zul files from a directory outside web application