... regarding theming an implementation as Telerik Blazor control would be preferrable
Peter
Posted on:03 Mar 2020 08:25
I was looking for a slide switch control to manage binary input, similar to the ones common to many mobile apps. I found the following that does a pretty good job using a bit of HTML and some clever CSS. If anyone is looking for something similar you might like to give this a try. Here's the link:
I think this will be easier than hacking at the styles of <button> elements, while at the same time attaching an @onclick is exactly the same for a <span> and <button> in Blazor.
Regards,
Marin Bratanov
Progress Telerik
UI for Blazor
Bryon
Posted on:13 Feb 2020 16:09
I am also interested in this. I converted a dropdown of three options to a row of three small icon buttons. Programatically, I can track the state of each button with corresponding bool variables. But what I can't figure out is how to manage the visual style of each button to appear in a pushed state verses not-pushed state.
Datafyer
Posted on:25 Oct 2019 22:13
Yes, whether it is a button or a checkbox I guess is a different conversion. Essentially something that toggles true/false or on/off.
I am sure I could do that currently through some CSS magic however having it as a drop in control would obviously be easier.
ADMIN
Marin Bratanov
Posted on:25 Oct 2019 06:20
Hello Patrick,
I was thinking about this in terms of functionality, not in terms of all possible UI implementations. If I understand you correctly, you want checkboxes that can look like this: https://demos.telerik.com/kendo-ui/switch/index. Am I correct?
Regards,
Marin Bratanov
Progress Telerik
UI for Blazor
Datafyer
Posted on:24 Oct 2019 18:52
This would certainly work however visually I was thinking of an actual switch.
ADMIN
Marin Bratanov
Posted on:24 Oct 2019 07:44
Hi Patrick,
A dropdown with two options is one choice, another common choice is a checkbox.
Here's an example how you can style checkboxes with our theme: