Comments (2)
It's already possible.
see flatpickr.js
if (selector.nodeName) { return createInstance(selector); }
So you can pass either a selector, or the DOM element itself.
from flatpickr.
Wow, didn't see that in the docs, so I didn't even tried it, sorry about that xP
Working perfectly when using DOM directly.
Thanks!
from flatpickr.
Related Issues (20)
- `_flastpickr` property on element not yet available on `onReady`
- Calling flatpickr() twice, reinitializes flatpickr
- Missing RM Romansh(Swiss) localization
- Edit hour and minute in a MODAL HOT 4
- Maintained? HOT 1
- Calling .open(); in iOS Safari immediately closes everything
- parseDate does not throw error for invalid dates when allowInput HOT 1
- Auto-Focus minutes after inserted hours
- Turn off auto close?
- Feature Request: When using altFormat, internally also copy the "style" attribute contents to created element
- valueChange on keyDown in datetime time input HOT 1
- Bug Report: Cannot getDate when using allowInput and allowInvalidPreload
- Bug Report: with altInput & alFormat, the created input does not extract and use all the class names HOT 1
- minDate set via instance.set(), calendar open on second time all dates are disabled
- current month forced to update when showMonths > 1
- Flatpickr does not receive focus if altInput is enabled
- Broken Links npmcdn.com HOT 1
- Documentation points to wrong CDN
- Request for Consideration: Show Current Time when user first clicks to Select Date Time
- when we select startDate and same endDate it only shows startDate in mode range. any solution to this
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 flatpickr.