You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+188-4
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# fng-bootstrap-datetime
2
2
3
-
Plugin for forms-angular that adds datetime picker (github.com/zhaber/angular-js-bootstrap-datetimepicker) support.
3
+
Plugin for forms-angular that adds datetime picker support.
4
4
5
5
## Usage
6
6
@@ -27,10 +27,10 @@ In your Mongoose schemas you can set up fields like this:
27
27
},
28
28
29
29
Options can be added to a fngUiBootstrapDatetimePicker object within the form object as illustrated by the examples above.
30
-
A complete list of setting options can be found in the Settings section of [this page](https://github.com/zhaber/angular-js-bootstrap-datetimepicker). Any setting
30
+
A complete list of setting options can be found in the Settings section below. Any setting
31
31
Date options (see [uib-datepicker](https://angular-ui.github.io/bootstrap/#!#datepicker) settings can be added as a JSON string as shown above.
32
32
33
-
For (my) convenience, the following defaults have been changed from https://github.com/zhaber/angular-js-bootstrap-datetimepicker:
33
+
For (my) convenience, the following defaults have been changed from the defaults shown below:
34
34
35
35
show-button-bar: false,
36
36
show-meridian: false,
@@ -40,4 +40,188 @@ For (my) convenience, the following defaults have been changed from https://gith
40
40
###Known Limitations:
41
41
42
42
Styling in (unsupported) Bootstrap 2 applications (such as the forms-angular.org website at the time of writing) has a few issues,
43
-
including inline help placing and the width of the first columnof the dropdown when weeks are not shown.
43
+
including inline help placing and the width of the first columnof the dropdown when weeks are not shown.
44
+
45
+
##Readme from github.com/zhaber/angular-js-bootstrap-datetimepicker (now Angular 4+ only)
46
+
47
+
The plugin is based on AngularUI [Datepicker](https://github.com/angular-ui/bootstrap/tree/master/src/datepicker) and [Timepicker](https://github.com/angular-ui/bootstrap/tree/master/src/timepicker).
Date is formatted using the [date filter](http://docs.angularjs.org/api/ng.filter:date) and is localized.
52
+
53
+
## Install
54
+
55
+
### NPM
56
+
Run `npm install angular-ui-bootstrap-datetimepicker` to install. Use the `--save` option to add it to your package.json's dependencies.
57
+
58
+
If you're using browserify, you can simply `require('angular-ui-bootstrap-datetimepicker')` to make it available in your angular project. Ensure that your angular module depends on `ui.bootstrap.datetimepicker`. You must be using the `ui.bootstrap` module as well - also availbe via npm.
59
+
60
+
Also include the stylesheet `datetimepicker.css` in your html. Note that this is the same stylesheet that the package.json's `style` declaration has.
61
+
62
+
### Bower
63
+
64
+
Run `bower install angular-ui-bootstrap-datetimepicker --save` to persist it to `bower.json`
65
+
66
+
Include the `ui.bootstrap.datetimepicker` module in your `app.js` file. You must be using the `ui.bootstrap` module as well.
67
+
68
+
### NuGet
69
+
70
+
See https://www.nuget.org/packages/Angular-js-bootstrap-datetimepicker/
0 commit comments