Skip to content

roelio/angular-datetime-input

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Angular directive for datetime input

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • CSS 55.5%
  • HTML 25.6%
  • JavaScript 18.9%