Changing the dropdown icon for SFDropdownList / DaterangePicker?

Hello,

I wanted to ask if it may be possible to change out the icons for the arrow indicator on the dropdown and daterange controls:


Instead of the calendar icon / the filled in triangle, is it possible to place in a different icon? If not, is it possible to change the calendar icon 


3 Replies

DR Deepak Ramakrishnan Syncfusion Team December 7, 2021 01:55 PM UTC

Hi John, 
 
Greetings from Syncfusion support. 
 
Yes we can change the icon content by overriding the existing styles . Kindly refer the below code snippet and sample link for your reference. 
 
<style> 
<style> 
    /*Styles to change the daterange picker icon*/ 
    .e-input-group-icon.e-range-icon::before, *.e-control-wrapper .e-input-group-icon.e-range-icon::before { 
        content: '\e71e'; 
        font-family: 'e-icons'; 
        font-size: 17px; 
    } 
 
    /*Styles to change dropdown iconn */ 
    .e-ddl.e-input-group.e-control-wrapper .e-ddl-icon::before { 
        content: '\e724'; 
        font-family: 'e-icons'; 
        font-size: 16px; 
    } 
</style> 
 
 
[snapshot] 
 
 
 
 
Icons UG documentation :  
 
 
Thanks, 
Deepak R. 



JT John T December 13, 2021 10:02 PM UTC

This worked on my end, thank you!



DR Deepak Ramakrishnan Syncfusion Team December 14, 2021 07:28 AM UTC

You are welcome John. 
 


Loader.
Up arrow icon