Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. const SKM = new sk.SearchkitManager('link', {basicAuth:"user:pw"})
  2.  
  3. class ConfidenceApp extends React.Component {
  4.  
  5. ...
  6.  
  7. changePagination() {
  8. console.log('change')
  9.  
  10. let accessor = new PaginationAccessor("p")
  11. accessor.state = accessor.state.setValue(5)
  12. console.log(accessor.state)
  13. SKM.addAccessor(accessor)
  14.  
  15. }
  16.  
  17. render() {
  18.  
  19. return (<div className="container">
  20. <SearchkitProvider ref="skp" searchkit={SKM}>
  21.  
  22. ....
  23.  
  24. <a onClick={this.changePagination}> change!</a>
  25. ...
  26. <Pagination showNumbers={true}/>
  27.  
  28. </SearchkitProvider>
  29. </div>)}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement