datetimepicker/README.md

84 lines
2.6 KiB
Markdown
Raw Normal View History

2018-03-21 16:43:32 +00:00
# jQuery DateTimePicker
2018-03-21 16:45:51 +00:00
[Demo and Documentation](https://xdsoft.net/jqplugins/datetimepicker/)
2018-03-21 16:43:32 +00:00
[![Build Status](https://travis-ci.org/xdan/datetimepicker.svg?branch=master)](https://travis-ci.org/xdan/datetimepicker)
[![npm version](https://badge.fury.io/js/jquery-datetimepicker.svg)](https://badge.fury.io/js/jquery-datetimepicker)
[![npm](https://img.shields.io/npm/dm/jquery-datetimepicker.svg)](https://www.npmjs.com/package/jquery-datetimepicker)
2018-03-21 16:45:51 +00:00
2018-03-21 16:43:32 +00:00
PLEASE. Help me update documentation.
2016-02-14 00:48:21 +00:00
[Doc.tpl](https://github.com/xdan/datetimepicker/blob/master/doc.tpl)
This file will be automatically displayed on the site
2017-10-03 05:09:18 +00:00
# Installation
2018-03-21 16:43:32 +00:00
```bash
2017-10-12 08:18:22 +00:00
npm install jquery-datetimepicker
2018-03-21 16:43:32 +00:00
```
2017-10-03 05:09:18 +00:00
OR
2018-03-21 16:43:32 +00:00
```bash
2017-10-12 08:18:22 +00:00
yarn add jquery-datetimepicker
2017-10-03 05:09:18 +00:00
```
2018-03-21 16:43:32 +00:00
or download [zip](https://github.com/xdan/datetimepicker/releases)
2015-09-25 10:32:41 +00:00
# datetimepicker
2013-11-03 10:10:07 +00:00
==============
2015-09-25 10:32:41 +00:00
**!!! The latest version of the options 'lang' obsolete. The language setting is now global. !!!**
Use this:
```javascript
jQuery.datetimepicker.setLocale('en');
2015-09-25 10:32:41 +00:00
```
2013-11-05 12:35:02 +00:00
[Documentation][doc]
2013-11-03 10:10:07 +00:00
jQuery Plugin Date and Time Picker
2013-11-03 10:51:56 +00:00
2013-11-03 10:52:54 +00:00
DateTimePicker
2014-12-12 14:12:57 +00:00
![ScreenShot](https://raw.github.com/xdan/datetimepicker/master/screen/1.png)
2013-11-03 10:52:54 +00:00
DatePicker
2014-12-12 14:12:57 +00:00
![ScreenShot](https://raw.github.com/xdan/datetimepicker/master/screen/2.png)
2013-11-03 10:52:54 +00:00
TimePicker
2014-12-12 14:12:57 +00:00
![ScreenShot](https://raw.github.com/xdan/datetimepicker/master/screen/3.png)
2013-11-03 10:52:54 +00:00
Options to highlight individual dates or periods
![ScreenShot](https://raw.github.com/Mingpao/datetimepicker/master/screen/4.png)
![ScreenShot](https://raw.github.com/Mingpao/datetimepicker/master/screen/5.png)
![ScreenShot](https://raw.github.com/Mingpao/datetimepicker/master/screen/6.png)
2018-03-21 16:43:32 +00:00
[doc]: https://xdsoft.net/jqplugins/datetimepicker/
### JS Build help
**Requires Node and NPM** [Download and install node.js](http://nodejs.org/download/).
Install:
1. Install `bower` globally with `npm install -g bower`.
2. Run `npm install`. npm will look at `package.json` and automatically install the necessary dependencies.
3. Run `bower install`, which installs front-end packages defined in `bower.json`.
Notice: If you use Bower v1.5.2, you will get error: `The "main" field cannot contain minified files`
You can regress to version 1.3.12
1. `npm uninstall bower -g`
2. `npm install -g bower@1.3.12`
Build:
2018-03-13 03:22:01 +00:00
First install npm requirements: `npm install -g uglifycss concat-cli`
Then build the files: `npm run build`
When build completed, you'll have the following files:
2015-09-26 12:19:28 +00:00
- **build/jquery.datetimepicker.full.js** - browser file
2015-09-26 12:18:45 +00:00
- **build/jquery.datetimepicker.full.min.js** - browser minified file
- **build/jquery.datetimepicker.min.js** - amd module style minified file