Bootstrap: How to add dropdown.less?
You have to download and include the following assets.
CSS
http://getbootstrap.com/2.3.2/assets/css/bootstrap.css
http://getbootstrap.com/2.3.2/assets/css/bootstrap-responsive.css
http://eternicode.github.io/bootstrap-datepicker/bootstrap-datepicker/css/datepicker.css
JS
http://code.jquery.com/jquery.js
http://getbootstrap.com/2.3.2/assets/js/bootstrap.js
http://eternicode.github.io/bootstrap-datepicker/bootstrap-datepicker/js/bootstrap-datepicker.js
Then in html, use like this.
<input data-provide="datepicker">
Demo here
Please note that, I have given bootstrap 2.3 here.
FrancescoMussi
Full-stack developer based in Riga, Latvia. Hope Socrates is proud of my Socratic badge on StackOverflow.
Updated on July 08, 2022Comments
-
FrancescoMussi almost 2 years
I need to add a calendar into a form. I want to install this project: https://github.com/vitalets/bootstrap-datepicker
But it is said that: Requires bootstrap’s dropdown component (dropdowns.less) for some styles, and bootstrap’s sprites (sprites.less and associated images) for arrows.
How can i add that files to my app?
Thank you very much!
-
FreeAsInBeer over 9 yearsThis doesn't include the optional CSS for arrow images, etc.
-
Romeo Sierra almost 6 yearsDemo given here is not functional. It takes you to a fiddle, but it is broken/not implemented properly.
-
Lee over 3 yearsThis answer doesn't provide the files asked for (sprites and dropdown)