Closed MaxSanKyu closed 9 years ago
yes, you can choose a view based on content index:
https://github.com/emberjs/list-view/blob/master/demos/multi-height-multi-view.html#L72-L74
the API isn't great, but it works.
Sadly not exactly what I was looking for. Doesn't really work with grid view and I would have to add an empty first object in the content, which is not really optimal.
@MaxSanKyu I managed to do something similar by using an array as the content for my list view. Each item specifies a template (or view) to render and list-view takes care of the rest.
Your controller can then just deal with the array and tell the list view to scroll at a specific position based on some user action.
Doesn't really work with grid view and I would have to add an empty first object in the content, which is not really optimal.
but it works, this project isn't at the "polish phase" yet
I want to add a search form at the top, which scrolls up with the list. Since it is a ContainerView I would have to add it as a child view at the first position, but I haven't quite figured out how to do this. Is this possible?