diff --git a/projects/lib/pagination/index.ts b/projects/lib/pagination/index.ts new file mode 100644 index 0000000..253b52a --- /dev/null +++ b/projects/lib/pagination/index.ts @@ -0,0 +1,8 @@ +/** + * @license + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE + */ + +export * from './public-api'; diff --git a/projects/lib/pagination/ng-package.json b/projects/lib/pagination/ng-package.json new file mode 100644 index 0000000..789c95e --- /dev/null +++ b/projects/lib/pagination/ng-package.json @@ -0,0 +1,5 @@ +{ + "lib": { + "entryFile": "public-api.ts" + } +} diff --git a/projects/lib/pagination/pagination.component.html b/projects/lib/pagination/pagination.component.html new file mode 100644 index 0000000..f1e2995 --- /dev/null +++ b/projects/lib/pagination/pagination.component.html @@ -0,0 +1,46 @@ +
{{ description }}
+
+ Import WrPaginationComponent
into a component where you want to use.
+
Basic usage of pagination component
+ +Different positions of pagination
+ +Pagination with page size selection
+ +Show total number of items
+ +Pagination with more pages shows ellipsis for better navigation
+ +Disabled state of pagination
+ +You can customize pagination styles using CSS variables.
+ +Property | +Description | +Type | +Default | +
---|---|---|---|
total |
+ Total number of items | +number |
+ 0 |
+
current |
+ Current page number | +number |
+ 1 |
+
pageSize |
+ Number of items per page | +number |
+ 10 |
+
position |
+ Position of pagination | +"start" | "center" | "end" |
+ "start" |
+
disabled |
+ Whether pagination is disabled | +boolean |
+ false |
+
showSizeChanger |
+ Whether to show page size select | +boolean |
+ false |
+
showTotal |
+ Whether to show total number | +boolean |
+ false |
+
ofLabel |
+ Total number "of" label | +string |
+ "of" |
+
pageSizeOptions |
+ Available page sizes | +number[] |
+ [10, 20, 50, 100] |
+