File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ # Datetime input UI element
2+
3+ This directive is designed to provide easy and intuitive input of moment.js datetime objects.
4+
5+ Desgined to be as simple as possible to afford intuitive interactions.
6+
7+ Converted into an angular directive for your convenience :)
8+
9+ ## Demo
10+ Click <a href =" https://rawgit.com/g1eb/angular-datetime-input/master/ " target =" _blank " >here</a > for a live demo.
11+
12+ ## Installation
13+
14+ 1 ) Install 'angular-datetime-input' with bower
15+
16+ ```
17+ bower install angular-datetime-input
18+ ```
19+
20+ 2 ) Add 'g1b.datetime-input' module to your app config
21+
22+
23+ ``` javascript
24+ angular .module (' myApp' , [
25+ ' g1b.datetime-input' ,
26+ ......
27+ ])
28+ ```
29+
30+ 3 ) Use 'datetime-input' directive in a view
31+
32+ ``` html
33+ <datetime-input start =" start" end =" end" handler =" print(start, end)" ></datetime-input >
34+ ```
35+
36+ ### Attributes
37+
38+ | Property | Usage | Default | Required |
39+ | :------------- | :-------------| :-----:| :-----:|
40+ | datetime | moment.js datetime object or a datetime string | none | yes |
41+ | handler | Handler function is fired on change of datetime object | none | no |
42+
43+ ## Dependencies
44+
45+ * [ AngularJS] ( https://angularjs.org/ )
46+ * [ moment.js] ( http://momentjs.com/ )
You can’t perform that action at this time.
0 commit comments