Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/forms-angular/fng-bootstrap-date
Date plugin using angular-ui-bootstrap DatePickerPopup
https://github.com/forms-angular/fng-bootstrap-date
Last synced: about 2 months ago
JSON representation
Date plugin using angular-ui-bootstrap DatePickerPopup
- Host: GitHub
- URL: https://github.com/forms-angular/fng-bootstrap-date
- Owner: forms-angular
- License: mit
- Created: 2017-10-10T14:45:48.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2024-10-30T13:17:31.000Z (2 months ago)
- Last Synced: 2024-11-01T15:06:14.833Z (2 months ago)
- Language: JavaScript
- Size: 85.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fng-bootstrap-date
Plugin for forms-angular that adds date picker from [Angular UI Bootstrap](https://github.com/angular-ui/bootstrap) support.
## Usage
bower install fng-bootstrap-date
Add the following line to your index.html (or equivalent) file.
Add `fng.uiBootstrapDate` to the list of servies your Angular module depends on.In your Mongoose schemas you can set up fields like this:
applicationReceived: {type: Date, form: {
directive:"fng-ui-bootstrap-date-picker",
fngUiBootstrapDatePicker: {
format: 'dd MMM yyyy',
"ng-model-options":"{timezone:\'UTC\'}"
}
}},Options can be added to a fngUiBootstrapDatePicker object within the form object as illustrated by the examples above. For (my) convenience, the default format has been changed to dd/MM/yyyy
###Known Limitations:
Styling in (unsupported) Bootstrap 2 applications (such as the forms-angular.org website at the time of writing) has a few issues,
including inline help placing and the width of the first columnof the dropdown when weeks are not shown.