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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

151158 Feb 2,2020 02:14 AM UTC Feb 5,2020 04:08 AM UTC Blazor 3
loading
Tags: Toggle Switch Button
Leon
Asked On February 2, 2020 02:14 AM UTC

The option:

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

Saranya Dhayalan [Syncfusion]
Replied On 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 


Leon
Replied On 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.

Saranya Dhayalan [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon