Skip to content

Commit

Permalink
tweak readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ZYMoridae committed Jun 15, 2019
1 parent e24af0b commit 9548029
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules
lib
package-lock.json
yarn.lock
yarn.lock

README.html
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
# ms-pagination
# ms-pagination

## Installing
```
npm install @josephzhou/ms-pagination
```

## Example
### How to use it

**Import package**
```
import PaginationComponent from "@josephzhou/ms-pagination";
```

**Parameters**

| Parameters | Type | Description | | |
|---------------|----------------------------------------------------------|--------------------------------------------------------------------|---|---|
| count | number | Total pages | | |
| initialPage | number | The page indicated when component initialized (default value is 1) | | |
| onPageChanged | (page: number, perPage: number, orderBy: string) => void | This function will be called when page number changed | | |

0 comments on commit 9548029

Please sign in to comment.