GitHunt
RO

roelio/angular-datetime-input

Angular directive for datetime input

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

  1. Install 'angular-datetime-input' with bower
bower install angular-datetime-input
  1. Add 'g1b.datetime-input' module to your app config
angular.module('myApp', [
  'g1b.datetime-input',
  ......
])
  1. 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

Languages

CSS55.5%HTML25.6%JavaScript18.9%

Contributors

Created August 10, 2016
Updated August 10, 2016