ui-pager
ui-pager copied to clipboard
Is this plugin available for Nativescript Core?
trafficstars
I was looking through the documentation but did not see any examples for Core. I tried using it in my app, but it does not render anything.
I think this plugin doesn't support Nativescript Core 😕
I was looking through the documentation but did not see any examples for Core. I tried using it in my app, but it does not render anything.
You can use ui-pager the same way you would use any other UI component in {N} Core.
Here's how I use it in my apps.
<!-- Static pages -->
<Page xmlns="http://schemas.nativescript.org/tns.xsd" xmlns:ui="@nativescript-community/ui-pager">
<StackLayout>
<ui:Pager>
<ui:PagerItem>
<!-- Add your view here -->
</ui:PagerItem>
</ui:Pager>
</StackLayout>
</Page>
<!-- Dynamic pages -->
<Page xmlns="http://schemas.nativescript.org/tns.xsd" xmlns:ui="@nativescript-community/ui-pager">
<StackLayout>
<ui:Pager items="{{ mypageritemsfromviewmodel }}">
</ui:Pager>
</StackLayout>
</Page>