0

Conditional Templating for Listhead [closed]

asked 2012-05-25 17:00:45 +0800

rdgrimes gravatar image rdgrimes
735 7

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.

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by rdgrimes
close date 2013-01-26 03:27:08

1 Reply

Sort by ยป oldest newest

answered 2012-05-25 20:33:43 +0800

rdgrimes gravatar image rdgrimes
735 7

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.

link publish delete flag offensive edit

Question tools

Follow

RSS

Stats

Asked: 2012-05-25 17:00:45 +0800

Seen: 153 times

Last updated: May 25 '12

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