Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const SKM = new sk.SearchkitManager('link', {basicAuth:"user:pw"})
- class ConfidenceApp extends React.Component {
- ...
- changePagination() {
- console.log('change')
- let accessor = new PaginationAccessor("p")
- accessor.state = accessor.state.setValue(5)
- console.log(accessor.state)
- SKM.addAccessor(accessor)
- }
- render() {
- return (<div className="container">
- <SearchkitProvider ref="skp" searchkit={SKM}>
- ....
- <a onClick={this.changePagination}> change!</a>
- ...
- <Pagination showNumbers={true}/>
- </SearchkitProvider>
- </div>)}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement