Pagination
The Pagination component provides an interface for navigating data or result sets that are spread across multiple pages. It can support arbitrary actions upon page button click. This means it isn't tied to any particular URL structure or API approach.
React.createElement(class Example1 extends Component {constructor(){this.state = {currentPage: 1,}}onPageClick(pageNumber){this.setState({currentPage: pageNumber})}render() {return (<PaginationcurrentPage={this.state.currentPage}totalPages={9}onPageClick={this.onPageClick}/>)}})
React.createElement(class Example2 extends Component {constructor(){this.state = {currentPage: 1,}}onPageClick(pageNumber) {this.setState({currentPage: pageNumber})}render() {return (<div><p>This example shows the pagination component when hiddenbegin and end arrows are set to true, max view pages are3, and a custom className (text-center) is passed to thecomponent.</p><p>Note that the component is still mobile-responsive, andstill requires the included stylesheet(<strong>Pagination.scss</strong>).</p><PaginationclassName="text-center"currentPage={this.state.currentPage}totalPages={14}maxViewPages={4}onPageClick={this.onPageClick}hideArrows={true}/></div>)}})
React.createElement(class Example3 extends Component {constructor(){this.state = {currentPage: 1,}}onPageClick(pageNumber) {this.setState({currentPage: pageNumber})}render() {return (<div><p>This example shows the default case for all props exceptcustom content is passed for the first, next, previous,last buttons.</p><p>This component requires custom styling, which is includedin the <strong>Pagination.scss</strong> file.</p><PaginationcurrentPage={this.state.currentPage}totalPages={14}onPageClick={this.onPageClick}firstPageContent={<i className="icon-angle-double-left" />}previousPageContent={<i className="icon-angle-left" />}nextPageContent={<i className="icon-angle-right" />}lastPageContent={<i className="icon-angle-double-right" />}/></div>)}})