mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-10-06 10:06:55 +00:00
tweak paginationFactory naming
This commit is contained in:
@@ -137,14 +137,14 @@ When <code>loading</code> is <code>true</code>, <code>react-bootstrap-table2</co
|
||||
<pre><code class="hljs css sh">$ npm install react-bootstrap-table2-paginator --save
|
||||
</code></pre>
|
||||
<p>After installation of <code>react-bootstrap-table2-paginator</code>, you can enable pagination on <code>react-bootstrap-table2</code> easily:</p>
|
||||
<pre><code class="hljs css js"><span class="hljs-keyword">import</span> paginator <span class="hljs-keyword">from</span> <span class="hljs-string">'react-bootstrap-table2-paginator'</span>;
|
||||
<pre><code class="hljs css js"><span class="hljs-keyword">import</span> paginationFactory <span class="hljs-keyword">from</span> <span class="hljs-string">'react-bootstrap-table2-paginator'</span>;
|
||||
|
||||
<span class="hljs-comment">// omit...</span>
|
||||
|
||||
<BootstrapTable data={ data } columns={ columns } pagination={ paginator() } />
|
||||
<BootstrapTable data={ data } columns={ columns } pagination={ paginationFactory() } />
|
||||
</code></pre>
|
||||
<p><code>paginator</code> is a function actually and allow to pass some pagination options, following we list all the available options:</p>
|
||||
<pre><code class="hljs css js">paginator({
|
||||
<p><code>paginationFactory</code> is a function actually and allow to pass some pagination options, following we list all the available options:</p>
|
||||
<pre><code class="hljs css js">paginationFactory({
|
||||
page, <span class="hljs-comment">// Specify the current page. It's necessary when remote is enabled</span>
|
||||
sizePerPage, <span class="hljs-comment">// Specify the size per page. It's necessary when remote is enabled</span>
|
||||
totalSize, <span class="hljs-comment">// Total data size. It's necessary when remote is enabled</span>
|
||||
|
||||
Reference in New Issue
Block a user