14.1.27 • Published 3 months ago

@nativescript-community/ui-pager v14.1.27

Weekly downloads
216
License
Apache-2.0
Repository
github
Last release
3 months 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.27

3 months ago

14.1.26

3 months ago

14.1.25

7 months ago

14.1.24

7 months ago

14.1.23

8 months ago

14.1.21

9 months ago

14.1.22

9 months ago

14.1.20

10 months ago

14.1.19

10 months ago

14.1.18

11 months ago

14.1.17

11 months ago

14.1.16

1 year ago

14.1.15

1 year ago

14.1.14

1 year ago

14.1.13

1 year ago

14.1.12

1 year ago

14.1.10

1 year ago

14.1.11

1 year ago

14.1.8

1 year ago

14.1.9

1 year ago

14.1.4

2 years ago

14.1.5

2 years ago

14.1.6

2 years ago

14.1.2

2 years ago

14.1.3

2 years ago

14.1.1

2 years ago

14.1.0

2 years ago

14.0.0

2 years ago

14.0.1

2 years ago

14.0.2

2 years ago

14.0.3

2 years ago

13.0.44

2 years 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

3 years ago

13.0.37

3 years ago

13.0.34

3 years ago

13.0.35

3 years ago

13.0.32

3 years ago

13.0.33

3 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

4 years ago

13.0.21

4 years ago

13.0.19

4 years ago

13.0.18

4 years ago

13.0.17

4 years ago

13.0.16

4 years ago

13.0.15

4 years ago

13.0.14

4 years ago

13.0.13

4 years ago

13.0.12

4 years ago

13.0.11

4 years ago

13.0.9

4 years ago

13.0.10

4 years ago

13.0.8

4 years ago

13.0.7

4 years ago

13.0.6

4 years ago

13.0.5

4 years ago

13.0.4

4 years ago

13.0.3

4 years ago

13.0.2

4 years ago

13.0.1

4 years ago

13.0.0-alpha.14

4 years ago

13.0.0-alpha.13

4 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