[Interest] Awkwardness of delegates in heterogenous ListViews

Jason H jhihn at gmx.com
Thu Jun 9 18:34:31 CEST 2016


> And as soon as I said that, I realize that this solution is bust: I
> can't use the visible/invisible trick since the various delegates will
> then make illegal uses of the items. I must use the Loader approach.
> But if I use the loader approach, then my solution with propagating
> the properties upwards with property aliases won't work, since the
> Loader can't alias a property of the delegates since they're now
> wrapped in Component.
> 
> Oh well, I think i'll just give up on having these delegates drop-in
> usable in both scenarios.


What do you mean "illegal uses of items"? In Javascript hardly anything is illegal.

Could you do 
text: attribute ? attribute: ""
Not ideal, but non-existent items in scope should be undefined.



More information about the Interest mailing list