1
- <!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️--> <!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️-->
1
+ <!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️--> This monorepo contains multiple packages:<br ><br ><details >
2
+ <summary ><b >ui-pager</b ></summary >
3
+ <!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️-->
2
4
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
3
5
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
4
6
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
54
56
* [ Usage in Svelte] ( #usage-in-svelte )
55
57
* [Examples](#examples-2)
56
58
* [ Usage in Vue] ( #usage-in-vue )
57
- * [Examples](#examples-3)
58
- * [ Demos and Development] ( #demos-and-development )
59
- * [Repo Setup](#repo-setup)
60
- * [Build](#build)
61
- * [Demos](#demos)
62
- * [ Contributing] ( #contributing )
63
- * [Update repo ](#update-repo-)
64
- * [Update readme ](#update-readme-)
65
- * [Update doc ](#update-doc-)
66
- * [Publish](#publish)
67
- * [ Questions] ( #questions )
59
+ * [Examples](#examples-3)
68
60
69
61
70
62
[ ] ( #installation )
@@ -104,8 +96,6 @@ Run the following command from the root of your project:
104
96
| autoPlay | ` boolean ` |
105
97
| disableSwipe | ` boolean ` |
106
98
| showIndicator | ` boolean ` |
107
- | indicatorColor | ` Color ` or ` string ` |
108
- | indicatorSelectedColor | ` Color ` or ` string ` |
109
99
110
100
111
101
```
@@ -208,11 +198,121 @@ Vue.use(Pager);
208
198
- A simple pager example using static content.
209
199
- [ Basic Pager] ( demo-snippets/vue/BasicPager.vue )
210
200
- A simple pager example using dynamic content.
201
+ </details ><details >
202
+ <summary ><b >ui-pager-indicator</b ></summary >
203
+ <!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️-->
204
+ <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
205
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
206
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
207
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
208
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
209
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
210
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
211
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
212
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
213
+ DO NOT EDIT THIS READEME DIRECTLY! Edit "bluesprint.md" instead.
214
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
215
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
216
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
217
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
218
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
219
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
220
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
221
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
222
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
223
+ <h1 align =" center " >@nativescript-community/ui-pager-indicator</h1 >
224
+ <p align =" center " >
225
+ <a href="https://npmcharts.com/compare/@nativescript-community/ui-pager-indicator?minimal=true"><img alt="Downloads per month" src="https://img.shields.io/npm/dm/@nativescript-community/ui-pager-indicator.svg" height="20"/></a>
226
+ <a href =" https://www.npmjs.com/package/@nativescript-community/ui-pager-indicator " ><img alt =" NPM Version " src =" https://img.shields.io/npm/v/@nativescript-community/ui-pager-indicator.svg " height =" 20 " /></a >
227
+ </p >
228
+
229
+ <p align =" center " >
230
+ <b >A NativeScript Indicator for Pager / Carousel /CollectionView</b ></br >
231
+ <sub ><sub >
232
+ </p >
233
+
234
+ <br />
211
235
212
236
237
+ | <img src =" https://github.com/nativescript-community/ui-pager/raw/master/images/demo-ios.gif " height =" 500 " /> | <img src =" https://github.com/nativescript-community/ui-pager/raw/master/images/demo-android.gif " height =" 500 " /> |
238
+ | --- | ----------- |
239
+ | iOS Demo | Android Demo |
240
+
241
+
242
+ [ ] ( #table-of-contents )
243
+
244
+
245
+ [ ] ( #table-of-contents )
246
+
247
+ ## Table of Contents
248
+
249
+ * [ Installation] ( #installation )
250
+ * [ API] ( #api )
251
+ * [Properties](#properties)
252
+ * [ Usage in Vue] ( #usage-in-vue )
253
+ * [Examples](#examples)
254
+
255
+
256
+ [ ] ( #installation )
257
+
258
+
259
+ [ ] ( #installation )
260
+
261
+ ## Installation
262
+ Run the following command from the root of your project:
263
+
264
+ ` ns plugin add @nativescript-community/ui-pager-indicator `
265
+
266
+
267
+ [ ] ( #api )
268
+
269
+
270
+ [ ] ( #api )
271
+
272
+ ## API
273
+
274
+ ### Properties
275
+
276
+ | Property | Type |
277
+ | - | - |
278
+ | color | ` Color ` or ` string ` |
279
+ | selectedColor | ` Color ` or ` string ` |
280
+
281
+
282
+ ```
283
+ PagerIndicator add page control for Pager or other Paging Views.
284
+ ```
285
+
286
+
287
+
288
+ [ ] ( #usage-in-vue )
213
289
214
- [ ] ( #demos-and-development )
215
290
291
+ [ ] ( #usage-in-vue )
292
+
293
+ ## Usage in Vue
294
+
295
+ Import the module into your project.
296
+
297
+
298
+ ``` typescript
299
+ import Vue from ' nativescript-vue' ;
300
+ Vue .registerElement (' PagerIndicator' , () => require (' @nativescript-community/ui-pager-indicator' ).PagerIndicator );
301
+ ```
302
+
303
+ then in your template:
304
+ ``` html
305
+ <Pager id =" pager" :items =" items"
306
+ ...
307
+ </Pager >
308
+ <PagerIndicator pagerViewId =" pager" />
309
+ ```
310
+
311
+ ### Examples
312
+
313
+ - [ Indicator Pager] ( demo-snippets/vue/Indicator.vue )
314
+ - A simple pager example using dynamic content and indicator.
315
+ </details >
216
316
217
317
[ ] ( #demos-and-development )
218
318
@@ -241,6 +341,7 @@ To start the interactive menu, run `npm start` (or `yarn start` or `pnpm start`)
241
341
``` bash
242
342
npm run build.all
243
343
```
344
+ WARNING: it seems ` yarn build.all ` wont always work (not finding binaries in ` node_modules/.bin ` ) which is why the doc explicitly uses ` npm run `
244
345
245
346
### Demos
246
347
@@ -250,9 +351,10 @@ npm run demo.[ng|react|svelte|vue].[ios|android]
250
351
npm run demo.svelte.ios # Example
251
352
```
252
353
253
-
254
- [ ] ( #contributing )
255
-
354
+ Demo setup is a bit special in the sense that if you want to modify/add demos you dont work directly in ` demo-[ng|react|svelte|vue] `
355
+ Instead you work in ` demo-snippets/[ng|react|svelte|vue] `
356
+ You can start from the ` install.ts ` of each flavor to see how to register new demos
357
+
256
358
257
359
[ ] ( #contributing )
258
360
@@ -294,9 +396,14 @@ Simply run
294
396
npm run publish
295
397
```
296
398
297
-
298
- [ ] ( #questions )
299
-
399
+ ### modifying submodules
400
+
401
+ The repo uses https:// for submodules which means you won't be able to push directly into the submodules.
402
+ One easy solution is t modify ` ~/.gitconfig ` and add
403
+ ```
404
+
405
+ pushInsteadOf = https://github.com/
406
+ ```
300
407
301
408
[ ] ( #questions )
302
409
0 commit comments