ui-pager icon indicating copy to clipboard operation
ui-pager copied to clipboard

Is this plugin available for Nativescript Core?

Open dpdragnev opened this issue 2 years ago • 2 comments
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.

dpdragnev avatar May 02 '23 15:05 dpdragnev

I think this plugin doesn't support Nativescript Core 😕

dyazincahya avatar Mar 16 '25 15:03 dyazincahya

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>

CatchABus avatar Mar 16 '25 18:03 CatchABus