New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement ListView template #10
Comments
My idea for the solution is to have a component, with a slot. Have yet to explore the details on how to tackle this, but seems like the most reasonable way to go about it! Other concern is multiple item templates, which I don't know how will work yet. If you have any ideas or suggestions, please write them down here! Even if it's just brainstorming, really helps with coming up with solutions. |
The angular renderer implements it with a detached container element for item templates: |
If I wanted to set the itemTemplate on the ListView, what gets passed? According to the docs, it can either be a string or a Template. Is a detached container considered a template (Detached Container is a ProxyViewContainer? (Mostly leaving these links here so it's easier to find!) |
Yes, Detached Container is a ProxyViewContainer |
When you pass a String or a Template to itemTemplate, it gets passed to the https://github.com/NativeScript/NativeScript/blob/master/tns-core-modules/ui/builder/builder.ts#L27 |
So it expects xml in that case? I think we should pass it a template instead of generating xml that will get parsed again. |
On the vue side, after a quick read through docs, I think we need to use scoped slots |
There is currently no way to specify item templates inside ListViews
The text was updated successfully, but these errors were encountered: