From 234a446a4f46cfb62a6122e6ef930e076928b218 Mon Sep 17 00:00:00 2001 From: AllenFang Date: Sat, 20 Jan 2018 17:50:21 +0800 Subject: [PATCH] paginationFactory renming --- docs/basic-pagination.md | 4 ++-- docs/table-props.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/basic-pagination.md b/docs/basic-pagination.md index 0b14392..a07540e 100644 --- a/docs/basic-pagination.md +++ b/docs/basic-pagination.md @@ -30,10 +30,10 @@ import 'react-bootstrap-table2-paginator/dist/react-bootstrap-table2-paginator.m Let's enable a pagination on your table: ```js -import paginator from 'react-bootstrap-table2-paginator'; +import paginationFactory from 'react-bootstrap-table2-paginator'; // omit... - + ``` ## Customization diff --git a/docs/table-props.md b/docs/table-props.md index c5763b4..bdfe644 100644 --- a/docs/table-props.md +++ b/docs/table-props.md @@ -179,17 +179,17 @@ $ npm install react-bootstrap-table2-paginator --save After installation of `react-bootstrap-table2-paginator`, you can enable pagination on `react-bootstrap-table2` easily: ```js -import paginator from 'react-bootstrap-table2-paginator'; +import paginationFactory from 'react-bootstrap-table2-paginator'; // omit... - + ``` -`paginator` is a function actually and allow to pass some pagination options, following we list all the available options: +`paginationFactory` is a function actually and allow to pass some pagination options, following we list all the available options: ```js -paginator({ +paginationFactory({ page, // Specify the current page. It's necessary when remote is enabled sizePerPage, // Specify the size per page. It's necessary when remote is enabled totalSize, // Total data size. It's necessary when remote is enabled