How to set date time icons on the left side

Hello, I'm using Syncfusion DateTime Picker and I want to set date and time icons on the left side, I used the [enableRtl]="true" and then everything is switched from right to left (I mean when I open date time popup), but I only want the icons to be on the left side.


How can I fix this, please? thank you.



1 Reply

KP Kokila Poovendran Syncfusion Team November 1, 2023 09:24 AM UTC

Hi Hamza MGAIDI,


Greetings from Syncfusion support!


We have reviewed your requirement and are pleased to inform you that we have prepared a sample that fulfills your needs. Please find the code snippet below for your reference:


.e-datetime-wrapper.e-control-wrapper {

  directionrtl;

}

 

.e-datetime-wrapper.e-control-wrapper .e-input {

  directionltr;

}

 


We achieved this behavior by applying the direction style to the input field and date time picker wrapper element. You can examine it to see if it meets your specific requirements. Here's a sample link for your convenience:

Sample: https://stackblitz.com/edit/angular-plxir8-nt8vut?file=src%2Fapp.component.css


If you have any further concerns or queries, please don't hesitate to reach out to us. We're here to assist you.


Regards,

Kokila Poovendran.


Loader.
Up arrow icon