Hi Jsu,
Thanks for contacting Syncfusion support.
You can override the Calendar icon of Datepicker with any custom icons.
We have prepared a sample by replacing the default date icon of the EJ2 DatePicker with bootstrap glyphicon and custom generated icon using Metro Studio. Please find the sample in the link provided below and make use of this solution in your application.
1. Using icons generated from Metro studio
<style>
#wrapper {
max-width: 246px;
margin: 30px auto;
padding-top: 50px;
}
.e-metro-icon .e-input-group-icon.e-date-icon::before{
content:'\e318' !important;
}
</style>
Add this style in your application to replace the Calendar icon.
Please, check out the link to know about the purpose and usage of Syncfusion Metro Studio.
2. For using third party icon packages.
created: function () {
datepicker.element.parentElement.lastElementChild.classList.remove("e-date-icon", "e-icons");
datepicker.element.parentElement.lastElementChild.classList.add("fas", "fa-calendar");
}
});
Here, you need to remove the “e-icons” and “e-date-icon” classes from the Datepicker’s input element and replace it with the root class of the thirty-party icon package in the created event of Datepicker.
Regards,
Deepa L.