Socket
Socket
Sign inDemoInstall

datetime-selector

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    datetime-selector

A lightweight, useful date&time selector


Version published
Maintainers
1
Install size
94.0 kB
Created

Readme

Source

datetime-selector

A lightweight, useful date&time selector

Usage

html

<input type="text" data-id="datetime-selector">

js

var dts = new dateTimeSelector();

Configuration

  • el: the element of DOM node to initialize the plugin
  • type: type of plugin, it can be set as t-basic, t-simple, t-range, t-combined and null so far.
  • time: customize time for initialization
  • maxData: limit the number of selected item, -1 is default and means no limitation.
  • onScroll: callback function for scrolling.
  • onChange: callback function for selecting time.
  • onCancel: callback function for close selector

Useful Methods

	var dts = new dateTimeSelector();
	ds.getTime();

    More methods will be added later.

Changelog

v1.0.0

  • Support 4 type of selector.
  • Support basic functions of a time selector

Keywords

FAQs

Last updated on 14 May 2017

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