()
| 16 | } |
| 17 | |
| 18 | render() { |
| 19 | return ( |
| 20 | <div> |
| 21 | <h3>Pagination</h3> |
| 22 | <ol> |
| 23 | <li> |
| 24 | <h4>Default pagination</h4> |
| 25 | <Pagination/> |
| 26 | <pre> |
| 27 | <code> |
| 28 | {`<Pagination/>`} |
| 29 | </code> |
| 30 | </pre> |
| 31 | </li> |
| 32 | <li> |
| 33 | <h4>Change event</h4> |
| 34 | <p>this will change next pagination</p> |
| 35 | <Pagination total={10} onChange={this.handlePageChange.bind(this)}/> |
| 36 | <pre> |
| 37 | <code> |
| 38 | {`<Pagination total={10} onChange={handlePageChange}/>`} |
| 39 | </code> |
| 40 | </pre> |
| 41 | </li> |
| 42 | <li> |
| 43 | <h4>Pagination with given current page</h4> |
| 44 | <p>now on page {this.state.current}</p> |
| 45 | <Pagination current={this.state.current} onChange={this.handlePageChange.bind(this)} total={100}/> |
| 46 | <pre> |
| 47 | <code> |
| 48 | {`<Pagination current={current} onChange={handlePageChange} total={100}/>`} |
| 49 | </code> |
| 50 | </pre> |
| 51 | </li> |
| 52 | <li> |
| 53 | <h4>Pagination with full range</h4> |
| 54 | <Pagination showRange={true} total={100}/> |
| 55 | <pre> |
| 56 | <code> |
| 57 | {`<Pagination showRange={true} total={100}/>`} |
| 58 | </code> |
| 59 | </pre> |
| 60 | </li> |
| 61 | <li> |
| 62 | <h4>Pagination with navigation</h4> |
| 63 | <Pagination showNav={true} current={3}/> |
| 64 | <pre> |
| 65 | <code> |
| 66 | {`<Pagination showNav={true} current={3}/>`} |
| 67 | </code> |
| 68 | </pre> |
| 69 | </li> |
| 70 | </ol> |
| 71 | </div> |
| 72 | ); |
| 73 | } |
| 74 | } |
nothing calls this directly
no outgoing calls
no test coverage detected