I'm using the ng-bootstrap datepicker (if you scroll down its the "Basic Datepicker") in my angular 2 application, but want to apply custom styles. How is that done? I don't see anything about it in the ng-bootstrap documentation.
I was able to change its styling when putting css settings in the style.scss file instead of component's styling file
/*@src/style.scss*/
ngb-datepicker {
position: absolute;
background-color: white;
.ngb-dp-header {
background-color: rgba(52,104,191,1);
}
select {
background-color: rgba(52,104,191,1);
color: white;
}
}
As of today you can provide a custom template for a data cell thus influencing look & feel of day display. This is demonstrated in the "Custom day view" section of the documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With