... regarding theming an implementation as Telerik Blazor control would be preferrable
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.
UI for Blazor
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.
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.
Posted on:25 Oct 2019 06:20
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?
UI for Blazor
Posted on:24 Oct 2019 18:52
This would certainly work however visually I was thinking of an actual switch.
Posted on:24 Oct 2019 07:44
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: