mirror of
https://github.com/HackPlan/angular-datepicker.git
synced 2026-01-13 08:49:44 +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
1.0 KiB
1.0 KiB
AngularJS datepicker directives
Requirements
- Angular v1.1.4+
- jQuery or your own implementation of
position()on top ofjQuery 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
<div date-picker="start"></div>
year view
<div date-picker="start" year></div>
month view
<div date-picker="start" month></div>
only date view
<div date-picker="start" date></div>
hours view
<div date-picker="start" hours></div>
minutes view
<div date-picker="start" minutes></div>
input as datepicker
<input type="datetime" date-time ng-model="start">
input with formatted value
<input type="datetime" date-time ng-model="end" hours format="short">
date-range picker
<div date-range start="start" end="end"></div>