
Product
Introducing Module Reachability: Focus on the Vulnerabilities That Matter
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
react-bootstrap-pagination-control
Advanced tools
This component automatically controls the pagination display.
This component automatically controls the pagination display.
npm install react-bootstrap-pagination-control
This example show a complete component usage.
import 'bootstrap/dist/css/bootstrap.min.css';
import React, { useState } from 'react';
import { PaginationControl } from 'react-bootstrap-pagination-control';
export default () => {
const [page, setPage] = useState(1)
return <Pagination
page={page}
between={4}
total={250}
limit={20}
changePage={(page) => {
setPage(page);
console.log(page)
}}
ellipsis={1}
/>
}
Name | Type | Default | Description |
---|---|---|---|
page | number | 1 | Active page |
between | number | 3 | Max itens in left and right when page is in center, it's minimum value is 1 |
total | number | - | Required. Total of itens |
limit | number | - | Required. Max itens per page |
changePage | Function | () => {} | Function that will receive the page nunber when click |
next | boolean | true | Control if prev and next actions will be displayed |
last | boolean | false | Control if fist and last actions will be displayed |
ellipsis | number | 0 | Number itens after ellipsis, its maximum value is equal (between - 2) |
MIT
FAQs
This component automatically controls the pagination display.
The npm package react-bootstrap-pagination-control receives a total of 848 weekly downloads. As such, react-bootstrap-pagination-control popularity was classified as not popular.
We found that react-bootstrap-pagination-control demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
Product
Socket is introducing a new way to organize repositories and apply repository-specific security policies.
Research
Security News
Socket researchers uncovered malicious npm and PyPI packages that steal crypto wallet credentials using Google Analytics and Telegram for exfiltration.