-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Dynamic construction of the pager content #12
Comments
@arnauvp you can upgrade to |
So fast!!! That allows me to programmatically inject Nativescript components in the slider, big win! I am still trying to figure out how to render full angular components in there, since *ngFor still complains (I guess since nodes don't map to a real Android View). I'll retry a few of the things I had previously attempted with ComponentFactoryResolver and Renderer. I'll keep you posted! |
This image summarizes how I got it working. There's probably a better way... |
@arnauvp Do you have a full code example? I could use some inspiration and guidance to achieve the same in my project. |
Thanks for the good work so far! This plugin is exactly what I need for a new app we're building.
I have been playing with the plugin for a couple of days but I can't manage to add the content dynamically with angular. Trying to use *ngFor results in an exception like:
I also tried creating the Nativescript views with code and pushing them to the items array:
this.pager.nativeElement.items.push(someStackLayoutWithChildren);
In the end the problem seems to be the _nativeView property being
undefined
ininstantiateItem
.Could you guys provide some guidance on how this could be achieved? I'm using the android emulator.
Thanks in advance!
The text was updated successfully, but these errors were encountered: