Datetime input UI element
This directive is designed to provide easy and intuitive input of moment.js datetime objects.
Desgined to be as simple as possible to afford intuitive interactions.
Converted into an angular directive for your convenience :)
Demo
Click here for a live demo.
Installation
- Install 'angular-datetime-input' with bower
bower install angular-datetime-input
- Add 'g1b.datetime-input' module to your app config
angular.module('myApp', [
'g1b.datetime-input',
......
])- Use 'datetime-input' directive in a view
<datetime-input start="start" end="end" handler="print(start, end)"></datetime-input>Attributes
| Property | Usage | Default | Required |
|---|---|---|---|
| datetime | moment.js datetime object or a datetime string | none | yes |
| handler | Handler function is fired on change of datetime object | none | no |
Dependencies
On this page
Languages
CSS55.5%HTML25.6%JavaScript18.9%
Contributors
Created August 10, 2016
Updated August 10, 2016