Comments (3)
Yes. Check out #38.
You'll have to import the rangePugin from the plugin directory, like this:
import rangePlugin from 'flatpickr/dist/plugins/rangePlugin'
Then pass that as an option to your component. Something like:
<Flatpickr
options={{
plugins: [new rangePlugin({ input: '#secondRangeInput' })]
}}
/>
<input id="secondRangeInput" />
from react-flatpickr.
@austinjreilly Thanks for the help. It worked.
from react-flatpickr.
Thanks @austinjreilly!
from react-flatpickr.
Related Issues (20)
- Changing date in range selector is resetting time to 12 HOT 3
- Changing "to date" time in range selector not firing onchange
- onChange hook does not update HOT 2
- Unable to use clear() method
- Bump flatpickr to 4.6.13 (fix issues) HOT 3
- The style is not working
- Clear date does not trigger onChange
- TypeError: _this.flatpickr.setDate is not a function in Jest after upgrading to CRA 5 HOT 1
- x
- Convert a selected date range in Flatpickr
- The calender component should support for testing purpose
- is there a way to use monthSelectPlugin , this doesnot seems to work ? HOT 2
- Lazy loading crashes Flatpickr HOT 1
- Conjunction config option not working when set to "\n"
- Mobile datepicker gets rendered twice when using Nextjs 13 HOT 2
- esbuild Incompatibility with Babel Versions Below 7.14.0
- In the mode selector for time user is able to enter more that 2 digit and not valid time in the timer input.
- umd packaging
- No updation on blur
- monthSelectPlugin error on mobile view
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-flatpickr.