-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I've tried every way that I can think of to perform conditional templating on the listhead, but no luck so far. The conditional templating of the listitems works great, but I need to condition the listhead so the column headers match the proper listitem template.
I'm using 6.0.1 in an MVVM architecture.
I came up with a somewhat satsifactory solution. I created two separate listboxes in two separate .zul files. Then, I did a conditional include of the listbox source.
<include src="@load(vm.draftInvoiceAuthority ? 'listbox1.zul' : 'listbox2.zul')" />
It's not the best, but in lieu of a conditional template for listhead, I guess it's what I'm stuck with.
Asked: 2012-05-25 17:00:45 +0800
Seen: 153 times
Last updated: May 25 '12