Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/k186/pd-datepicker-pc
datetimepicker
https://github.com/k186/pd-datepicker-pc
date datepicker hour moment picker time timepicker wheel
Last synced: about 2 months ago
JSON representation
datetimepicker
- Host: GitHub
- URL: https://github.com/k186/pd-datepicker-pc
- Owner: k186
- License: mit
- Created: 2017-11-19T14:11:12.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-16T03:20:40.000Z (over 6 years ago)
- Last Synced: 2024-10-28T15:32:43.461Z (2 months ago)
- Topics: date, datepicker, hour, moment, picker, time, timepicker, wheel
- Language: JavaScript
- Homepage: http://cabin.dmall.com/#index/cabin/pddatepicker
- Size: 488 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![npm](https://img.shields.io/npm/v/pd-datepicker-pc.svg)](https://www.npmjs.com/package/pd-datepicker-pc)
Build Setup
```
# install dependencies
npm install# build for production with minification
npm run compile```
### install
```
npm i pd-datepicker-pc -Sneed jquery and momentjs
```
### example
```html
Title
$('#app').PdDatePicker({
initDate:'2016-11-19 15:27',
format:'YYYY-MM-DD HH:mm:ss'
}).on('change',function (data) {
console.log(data)
})
// PdDatePicker(id,options)```
### options default
```
startView: 3, @year{1} month{2} day{3} hour:min{4}
maxView: 1,
minView: 5,
initDate: null,
startDate: '2016-11-12',
endDate: null,
language: 'cn',
format: 'YYYY-MM-DD',
minuteRange: 1,
containerId: null,
hourList: null
```