mirror of
https://github.com/HackPlan/angular-datepicker.git
synced 2026-06-14 17:08:59 +08:00
moved templates from `scripts` to `templates` directory more verbose template names updated `translate-z` to higher value - so we don't have conflicts with things like modals unified bower.json with `master` branch unified readme updated `grunt` tasks to copy readme and bower.json
80 lines
1.0 KiB
Markdown
80 lines
1.0 KiB
Markdown
# AngularJS datepicker directives
|
|
|
|
#### Requirements
|
|
|
|
- Angular v1.1.4+
|
|
- jQuery or your own implementation of `position()` on top of `jQuery Lite`
|
|
|
|
|
|
#### Development version
|
|
|
|
Checkout branch `dev`, run `grunt install` and `bower install`.
|
|
To build run `gunt build`
|
|
|
|
## Examples
|
|
|
|
Live demo : http://run.plnkr.co/erJj712N4bbkGsub/
|
|
|
|
|
|
##### defaults
|
|
|
|
```html
|
|
<div date-picker="start"></div>
|
|
```
|
|
|
|
|
|
##### year view
|
|
|
|
```html
|
|
<div date-picker="start" year></div>
|
|
```
|
|
|
|
|
|
##### month view
|
|
|
|
```html
|
|
<div date-picker="start" month></div>
|
|
```
|
|
|
|
|
|
##### only date view
|
|
|
|
```html
|
|
<div date-picker="start" date></div>
|
|
```
|
|
|
|
|
|
##### hours view
|
|
|
|
```html
|
|
<div date-picker="start" hours></div>
|
|
```
|
|
|
|
|
|
##### minutes view
|
|
|
|
```html
|
|
<div date-picker="start" minutes></div>
|
|
```
|
|
|
|
|
|
##### input as datepicker
|
|
|
|
```html
|
|
<input type="datetime" date-time ng-model="start">
|
|
```
|
|
|
|
|
|
##### input with formatted value
|
|
|
|
```html
|
|
<input type="datetime" date-time ng-model="end" hours format="short">
|
|
```
|
|
|
|
|
|
##### date-range picker
|
|
|
|
```html
|
|
<div date-range start="start" end="end"></div>
|
|
```
|