I want to modify one of JHipster entity page to use DatePicker. I Have include dependencies over Bower, add js library url to index page. I'm not sure how to include bootstrap css, should I use compass or something else? Or do you maybe know better library for UI.
相关问题
- angularJS: ui-router equivalent to $location.searc
- Separate AngularJS Controllers Into Separate Files
- Angular ngAnimate not working first time on page l
- Ionic Spinner not showing up
- Upload file to Google Cloud Storage using AngularJ
相关文章
- Passing variable through URL with angular js
- Mapstruct generated class not being injected by Sp
- Watch entire object (deep watch) with AngularJS
- Angular ng-if change span text
- Can ng-show directive be used with a delay
- AngularJS $routeParams vs $stateParams
- Multiple parameters in AngularJS $resource GET
- How to set class/style of accordion heading in Ang
An alternative to this is to use AngularJS Bootstrap module which provides several other widgets apart from Datepicker.
Full Documentation here and here
I added it to my project using WebJars:
Then I use class="date" on my date fields and use the following HTML/JS to initialize the field.
To do it with Bower, I used the following steps:
In bower.json, add bootstrap-datepicker as a dependency. I added it just after bootstrap-sass.
Then run:
In src/main/webapp/index.html, add links to the CSS and JS files:
To prove it works, I added a "birthdate" field to register.html. Note the data-provide attribute triggers the popup calendar.