Socket
Socket
Sign inDemoInstall

datetime-local-picker

Package Overview
Dependencies
4
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    datetime-local-picker

Datetime picker with list and table mode via lodash templates using moment for date arithmetic


Version published
Weekly downloads
4
Maintainers
1
Install size
6.75 MB
Created
Weekly downloads
 

Readme

Source

datetime-local-picker

Early goal was to use the HTML5 input types dateime-local, date and time for environments with disabled javascript (or failed loading due to network issues etc.). On that basis the usage of the native input types on e.g. mobile devices could be done with a fallback to custom styled calendars or list on bigger viewports or devices where native HTML5 input type support is bad. Turns out, that native HTML5 input types are badly supported (even on mobile) as they e.g. set random seconds when setting a time or they disallow users to set seconds (and milliseconds) at all. Additionally they tend to have a lack of GUI support for seconds and milliseconds even on desktop browsers. That's why this datepicker is suggested to be used on a plain input[type="text"]. :\

Dependencies

At the moment:

  • requirejs
  • momentjs
  • jquery
  • lodash (plus lodash-template-loader plugin)

Usage

See index.html for the moment. Available settings can be seen in the default_settings on top of the src/DatetimeLocalPicker.js file. The public API can be found there too (or use the browser's console on the index page with foo.).

License

MIT - see LICENSE file.

Keywords

FAQs

Last updated on 14 Dec 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc