Αποτελέσματα Αναζήτησης
A lightweight, powerful datetimepicker - Simple. Fast. Reliable. Content delivery at its finest. cdnjs is a free and open-source CDN service trusted by over 12.5% of all websites, serving over 200 billion requests each month, powered by Cloudflare. We make it faster and easier to load library files on your websites.
All of the following are valid ways to create flatpickr instance. flatpickr(element, {}); // Otherwise, selectors are also supported. flatpickr("#myID", {}); // creates multiple instances. flatpickr(".anotherSelector"); Configuration is optional and passed in an object {}. If you have jQuery, flatpickr is available as a plugin. Simply.
flatpickr is a lightweight and powerful datetime picker. Lean, UX-driven, and extensible, yet it doesn’t depend on any libraries. There’s minimal UI but many themes. Rich, exposed APIs and event system make it suitable for any environment.
Unless otherwise specified, the markup for examples below consists of just an input element, and flatpickr invocation with a given config. flatpickr without any config. enableTime: true, dateFormat: "Y-m-d H:i", altInput hides your original input and creates a new one.
6 Απρ 2013 · Start using flatpickr in your project by running `npm i flatpickr`. There are 883 other projects in the npm registry using flatpickr.
flatpickr provides more functionality at a fraction of the size of other libraries. IE9 and up, Edge, iOS Safari 6+, Chrome 8+, Firefox 6+. Demos and documentation: https://flatpickr.js.org. See also: flatpickr will never change its license, pester users for donations, or engage in other user-hostile behavior.
Plugins are essentially a set of hooks, that receive an optional config object and a flatpickr instance. Functionality requested by users that doesn’t make it to core usually ends up in a plugin. The flatpickr repo comes with a few plugins. Provides a visual cue for users after selecting either: "enableTime": true,