Closed ghost closed 6 years ago
It would be a lot easier to debug if you could create a jsFiddle showing the problem. Are you making sure the repeater is in a sized container? You might need to set the class enyo-fit
on it to be sure it is sized appropriately. A big mistake people often make is leaving it unsized, so it ends up with a height of zero.
Thx for the answer First example (doesn't work with Collection): http://jsfiddle.net/8uvJE/64/ Second example (works with Simplerepeater): http://jsfiddle.net/8uvJE/67/
You need to assign the collection
property of your DataRepeater
or else it has no collection to work with. See updated fiddle: http://jsfiddle.net/8uvJE/70/
You could use a binding on MyView
to bind from this.data
to this.$.repeater.collection
I have simple collection and view
And I have main view
But the collection is not showing up. If I use SimpleRepeater (code below), everything works fine
What am I doing wrong ? Thx