14.1.23 • Published 10 days ago

@nativescript-community/ui-pager v14.1.23

Weekly downloads
216
License
Apache-2.0
Repository
github
Last release
10 days ago
iOS DemoAndroid Demo

Table of Contents

Installation

Run the following command from the root of your project:

ns plugin add @nativescript-community/ui-pager

API

Properties

PropertyType
itemsarray or ItemsSource
selectedIndexnumber
canGoRightboolean
canGoLeftboolean
spacingPercentLengthType
peakingPercentLengthType
perPagenumber
indicatorstring ('disable', 'none', 'worm', 'fill', 'swap', 'thin_worm', 'flat')
circularModeboolean
autoPlayDelaynumber
autoPlayboolean
orientationstring ('horizontal' or 'vertical')
autoPlayboolean
disableSwipeboolean
showIndicatorboolean
transformersstring
Pager for NativeScript supports the core ObservableArray module part of the core NativeScript modules collection. Using an ObservableArray instance as a source for Pager will ensure that changes in the source collection will be automatically taken care of by the control.

Usage in Angular

Import the module into your project.

import { PagerModule } from "@nativescript-community/ui-pager/angular";

@NgModule({
    imports: [
        PagerModule,
    ],
})

Examples

Usage in React

Import the module into your project.

import { Pager } from '@nativescript-community/ui-pager/react';

Examples

  • Basic Pager
    • A simple pager example using dynamic content.

Usage in Svelte

Import the module into your project.

import { registerNativeViewElement } from 'svelte-native/dom';

import PagerElement from '@nativescript-community/ui-pager/svelte';
import { PagerItem } from '@nativescript-community/ui-pager';

PagerElement.register();
registerNativeViewElement('pageritem', () => PagerItem);

Examples

Usage in Vue

Import the module into your project.

import Vue from 'nativescript-vue';
import Pager from '@nativescript-community/ui-pager/vue';

Vue.use(Pager);

Examples

Custom Transformer

You can define custom transformer for iOS/Android

You can follow the Scale example for iOS and Android to create your custom transformer.

Then you can register your transformer on app start with (this example registered the included but not registered Scale transformer):

import { Pager } from '@nativescript-community/ui-pager';
import transformer from '@nativescript-community/ui-pager/transformers/Scale';

Pager.registerTransformer('scale', transformer)

Then you can use that transformer with the transformers property of Pager

14.1.23

10 days ago

14.1.21

1 month ago

14.1.22

1 month ago

14.1.20

2 months ago

14.1.19

2 months ago

14.1.18

3 months ago

14.1.17

3 months ago

14.1.16

5 months ago

14.1.15

5 months ago

14.1.14

5 months ago

14.1.13

5 months ago

14.1.12

5 months ago

14.1.10

5 months ago

14.1.11

5 months ago

14.1.8

7 months ago

14.1.9

5 months ago

14.1.4

12 months ago

14.1.5

12 months ago

14.1.6

12 months ago

14.1.2

1 year ago

14.1.3

1 year ago

14.1.1

1 year ago

14.1.0

1 year ago

14.0.0

1 year ago

14.0.1

1 year ago

14.0.2

1 year ago

14.0.3

1 year ago

13.0.44

1 year ago

13.0.43

2 years ago

13.0.42

2 years ago

13.0.40

2 years ago

13.0.38

2 years ago

13.0.39

2 years ago

13.0.36

2 years ago

13.0.37

2 years ago

13.0.34

2 years ago

13.0.35

2 years ago

13.0.32

2 years ago

13.0.33

2 years ago

13.0.31

3 years ago

13.0.30

3 years ago

13.0.28

3 years ago

13.0.29

3 years ago

13.0.27

3 years ago

13.0.26

3 years ago

13.0.25

3 years ago

13.0.24

3 years ago

13.0.22

3 years ago

13.0.23

3 years ago

13.0.20

3 years ago

13.0.21

3 years ago

13.0.19

3 years ago

13.0.18

3 years ago

13.0.17

3 years ago

13.0.16

3 years ago

13.0.15

3 years ago

13.0.14

3 years ago

13.0.13

3 years ago

13.0.12

3 years ago

13.0.11

3 years ago

13.0.9

3 years ago

13.0.10

3 years ago

13.0.8

3 years ago

13.0.7

3 years ago

13.0.6

3 years ago

13.0.5

3 years ago

13.0.4

3 years ago

13.0.3

3 years ago

13.0.2

3 years ago

13.0.1

3 years ago

13.0.0-alpha.14

3 years ago

13.0.0-alpha.13

3 years ago

13.0.0-alpha.12

4 years ago

13.0.0-alpha.11

4 years ago

13.0.0-alpha.9

4 years ago

13.0.0-alpha.10

4 years ago

13.0.0-alpha.8

4 years ago

13.0.0-alpha.7

4 years ago

13.0.0-alpha.6

4 years ago

13.0.0-alpha.5

4 years ago

13.0.0-alpha.3

4 years ago

13.0.0-alpha.4

4 years ago

13.0.0-alpha.2

4 years ago

13.0.0-alpha.1

4 years ago

12.0.0-alpha.9

4 years ago