I have a couple of inquiries about customizing the DatePicker:
- Is there a way to modify the background color of the datePicker using CSS? For instance, I would like to change the current green color to blue.
(Just to note, JS cannot be used in this scenario)
- How can I add a "calendar" icon to the right side of the input field?
HTML
<div class="container">
<input
type="text"
#dp="bsDatepicker"
bsDatepicker
[(bsValue)]="myDateValue"
/>
</div>
CSS
.container {
display: flex;
flex-direction: row;
justify-content: center;
margin-top: 50px;
}
::ng-deep.bs-datepicker {
height: 350px;
}
.custom-content {
position: absolute;
z-index: 1081;
top: 390px;
cursor: pointer;
align-self: center;
}
For a live example, you can view it here
Thank you