Bootstrap date picker in material design | material design date picker | bootstrap calendar in material design | bootstrap calendar
Here I am going to share with you a article about how to make bootstrap date picker a fancy materialize date picker. This material design updated date picker will make your website more fancy look when you will use it this bootstrap date picker in material design in place of default bootstrap date picker.
How to convert bootstrap date picker into bootstrap material date picker :
You have to modify few js and css file .
I am going to modify
Now lets talk about modification. After briefing you about modification I will let you go throw a demo of bootstrap datepicker in material design and it code in zip format you can download it.
Now I am going to revel change made in
In uncompressed bootstrap-datepicker.js file in line number 785 I have inserted a <div> inside td tag so that I can feel free to customize on div to make it rounded circle and to make several change is view as you will see in demo.
JS after before edit : you can see the changes In code given below to observe changes made by me.
Js Line Without Change :
Js Line With changes :
In CSS I have made several UI Enhancement to materialize this bootstrap date picker as you can see in the image given below :
How to Use it:
Add html code as given below where you want to show bootstrap datepicker in your website.
HTML code :
Add Stylesheet that are required for bootstrap datepicker. Add this stylesheet before </head> tag in your website.
CSS Code :
Finally add these js file before body tag close
Js Code :