I have a Blog model with hasMany Posts (and many other fields). Now I want to list these posts in a List-view like that:
- [My post #1]
- [My post #2]
- [My post #3]
As far as the API described, I’m able to pass either a store or a data attribute to Ext.dataview.List. But I was not able to find out how to pass the hasMany records to the list so it will display an item for each of them.
Do I really have to create another store? Isn’t it possible to configure my dataview to something like store: 'Blog.posts' or data: 'Blog.posts' or even records: 'Blog.posts'?
As @Adam Marshall said, this doesn’t work as easy as I imagined.