The default selected color for my switch based on my theme is a reddish color.
I need to occasionally change that on a particular page (blue) . I do not want to change it for every page.
How can I target an individual switch element through css or property.
Any help would be appreciated.
1 Answer, 1 is accepted
answered on 19 Jan 2021, 08:08 AM
You can use the Class parameter exposed for the Switch component. It will allow you to pass custom CSS class to the topmost wrapping HTML element of the component and use it to cascade styles to a specific instance. I have prepared a basic implementation that you can see below:
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.