We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

OffLabel="NO" OnLabel="YES" Does not work

The option:

<EjsSwitch ID="switch1" OffLabel="NO" OnLabel="YES" Created="create" @ref="SwitchObj" ></EjsSwitch>

3 Replies

SD Saranya Dhayalan Syncfusion Team February 3, 2020 05:41 AM UTC

Hi Juan 
 
Thank you for contacting Syncfusion support 
 
We have checked your reported issue, we suspect that the cause of the issue is you are referring the material theme. We would like to let you know that ”Switch does not have text support for material themes, and does not support long custom text.” So please refer the other themes like fabric, bootstrap. Please find the below code snippet: 
 
<link rel='nofollow' href="https://cdn.syncfusion.com/ej2/17.4.46/bootstrap.css" rel="stylesheet" /> 
<script src="https://cdn.syncfusion.com/ej2/17.4.46/dist/ej2.min.js"></script> 
<script src="https://cdn.syncfusion.com/ej2/17.4.46/dist/ejs.interop.min.js"></script> 
 
For your convenience we have prepared a sample. Please find the below sample link: 
 
 
Could you please check the above sample and get back to us if you need further assistance on this? 
 
Regards, 
Saranya D 



LE Leon February 5, 2020 02:54 AM UTC

Yes that was the problem once I changed  

<link rel='nofollow' href="https://cdn.syncfusion.com/ej2/17.4.43/material.css" rel="stylesheet" />

for 

<link rel='nofollow' href="https://cdn.syncfusion.com/ej2/17.4.46/bootstrap.css" rel="stylesheet" />

Now it is working.


SD Saranya Dhayalan Syncfusion Team February 5, 2020 04:08 AM UTC

Hi Juan, 
 
Thanks for your update. 
 
We are happy to hear that your issue has been resolved. Kindly get back to us if you need any further assistance. 
 
Regards, 
Saranya D 


Loader.
Up arrow icon