Giter Site home page Giter Site logo

react-bootstrap-pagination's Introduction

react-bootstrap-pagination

This package provides a bootstrap 3 and/or 4 paginator ReactJS class to be used with the meteor kurounin:pagination package.

NPM version node version license npm download

install

react-bootstrap-pagination

Usage

import BootstrapPaginator from 'react-bootstrap-pagination';

<BootstrapPaginator pagination={this.pagination} limit={10} containerClass='text-center' />

Available class properties are:

  • pagination: pagination instance
  • limit: maximum number of page links to display (defaults to 10)
  • containerClass: optional container class for the paginator

react-bootstrap-pagination's People

Contributors

csillag avatar kurounin avatar lawrentiy avatar zeroasterisk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-bootstrap-pagination's Issues

Doesn't work with server side rendering (ReactRouterSSR+Kuronin:Pagination)

What could be the issue?

Meteor React Router SSR

Getting the following server console error and server side rendering fails, when using react-bootstrap-pagination along with Kuronin:Pagination
W20161021-15:15:26.072(3)? (STDERR) Fri Oct 21 2016 15:15:26 GMT+0300 (EEST) 'error while server-rendering' 'TypeError: props.pagination.ready is not a function\n at [object Object].setDisplayedPages (/Users/johannes/Projects/TotoBet/totobet/node_modules/react-bootstrap-pagination/dist/pagination.js:62:35)\n at [object Object].componentWillMount (/Users/johannes/Projects/TotoBet/totobet/node_modules/react-bootstrap-pagination/dist/pagination.js:46:18)\n at /Users/johannes/Projects/TotoBet/totobet/node_modules/react/lib/ReactCompositeComponent.js:347:23\n at measureLifeCyclePerf (/Users/johannes/Projects/TotoBet/totobet/node_modules/react/lib/ReactCompositeComponent.js:74:12)\n at [object Object].ReactCompositeComponentMixin.performInitialMount (/Users/johannes/Projects/TotoBet/totobet/node_modules/react/lib/ReactCompositeComponent.js:346:9)\n at [object Object].ReactCompositeComponentMixin.mountComponent (/Users/johannes/Projects/TotoBet/totobet/node_modules/react/lib/ReactCompositeComponent.js:257:21)\n at Object.ReactReconciler.mountComponent (/Users/johannes/Projects/TotoBet/totobet/node_modules/react/lib/ReactReconciler.js:47:35)\n at ReactDOMComponent.ReactMultiChild.Mixin.mountChildren (/Users/johannes/Projects/TotoBet/totobet/node_modules/react/lib/ReactMultiChild.js:240:44)\n at ReactDOMComponent.Mixin._createContentMarkup (/Users/johannes/Projects/TotoBet/totobet/node_modules/react/lib/ReactDOMComponent.js:661:32)\n at ReactDOMComponent.Mixin.mountComponent (/Users/johannes/Projects/TotoBet/totobet/node_modules/react/lib/ReactDOMComponent.js:528:29)'

Everything is fine if I disable SSR, but once I enable it it doesn't pre-render.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.