Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

anima-datetimepicker

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anima-datetimepicker

H5日期时间选择器

  • 0.0.3
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

anima-datetimepicker spm version


日期时间选择器

Install

$ spm install anima-datetimepicker --save

Screenshot

Screenshot

Usage

var DatetimePicker = require('anima-datetimepicker');

var picker = new DatetimePicker({
  format : 'YYYY-MM-DD HH:II',
  onComplete : function(value) {
    console.log(value);
  }
});

picker.show('2015-01-01 01:01');

API

Config

  • String format : 选择日期时间格式,支持 YYYY-MM-DDYYYY年MM月DD日HH:II ,不支持 YYYY-M-DMM-DD HH:II
  • String value : 默认日期时间字符串,必须和 format 匹配。
  • Number minYear : 最小年度,默认值为 2000
  • Number maxYear : 最大年度,默认值为 2030
  • Function onComplete : 完成后执行的回调函数, value 会按 format 格式化。
  • Function onShow : 显示后时执行的回调函数。
  • Function onHide : 隐藏后执行的回调函数。

Method

  • show([value]) : 显示控件。value为日期时间字符串,必须和 format 匹配。
  • hide() : 隐藏控件。
  • destroy() : 销毁控件,从DOM中移除。
  • complete() : 完成,会触发 onComplete 事件。

FAQs

Package last updated on 28 Dec 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc