azaviruha / pager Goto Github PK
View Code? Open in Web Editor NEW*DEPRECATED* React <Pager> component (stateless).
License: MIT License
*DEPRECATED* React <Pager> component (stateless).
License: MIT License
Just wondering if this is a simple bump in the peer dependencies.
Hi, I have used this pager, but the active class of is not working after clicking, how should I to fix it?
I just install the react-pager, than import it and put the tag on my view.
Thanks in advance!
Is there a way to provide a way to have a smaller pager like..pagination-sm..?
http://v4-alpha.getbootstrap.com/components/pagination/#sizing
The following warning is printed when used with [email protected], however it still works fine but would be good to get it removed.
This was caused by proptypes being removed from the React core package https://facebook.github.io/react/docs/typechecking-with-proptypes.html.
...../node_modules/fbjs/lib/warning.js:36 Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types p
Will component be available in react 16?
$ npm install
+-- UNMET PEER DEPENDENCY [email protected]
+-- UNMET PEER DEPENDENCY [email protected]
`-- [email protected]
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\react-scripts\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN [email protected] requires a peer of react@^15.0.0 but none was installed.
npm WARN [email protected] requires a peer of react-dom@^15.0.0 but none was installed.
I have tested it by copying sources into application and seems it works perfectly. No backward incompatibilities found.
When I try to build my project I get this message:
Module build failed: Error: Couldn't find preset "latest" relative to directory "/mydir/node_modules/react-pager"
Installing babel-preset-latest fixes the error, but I think it's not the best way because babel-preset-latest is deprecated and its installation gives me a warning:
We're really excited that you're trying to use ES2016 syntax, but instead of making more yearly presets, Babel has a better preset that we recommend you use instead: npm install babel-preset-env --save-dev. Give us a follow @babeljs to get more updates
However, installing only babel-preset-env doesn't fix the problem.
Howdy - could you publish a version with the [email protected]
support? You modified package.json
to allow the new version of react but haven't pushed to npm yet. ๐
npm version patch -m "Bump version" && npm publish && git push origin master --tags
๐ โค๏ธ
Hello!
I'm using React-Intl for internationalization. Is there any way to use it with React-Intel ?
When using react-pager with react version 0.13.0, I get the following errors:
Warning: Something is calling a React component directly. Use a factory or JSX instead. See: http://fb.me/react-legacyfactory dist.js:38208 Warning: Pager(...): No
rendermethod found on the returned component instance: you may have forgotten to define
renderin your component or you may have accidentally tried to render an element whose type is a function that isn't a React component. dist.js:18563 Warning: Don't set the props property of the component. Mutate the existing props object instead. dist.js:24920 Uncaught TypeError: Can't add property context, object is not extensible
I have a demo application that shows the problem. You can find it here:
https://github.com/jeffbarge/react-pager-problem
Based on your demo here:
http://jsfiddle.net/kb3gN/8004/
visiblePage is not respected when clicking on "Last".
Nice component, BTW!
This pager currently doesn't add href
or tabIndex
to its links, which makes it substantially more difficult for users to navigate pages with the keyboard.
Add href
s to the links in the render
method of the Page
class and update the handlers to call preventDefault
on the event.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.