Toggle Switch Demo (Canvas Edition)

I have created an all Anvil canvas version of my toggle switch, mostly so I’m not dependent on external CSS and I can have some more finely grained control over its actions.

It fires events just like a normal check box, and works nearly as well as the CSS version (the animation is a little less smooth).

Is anyone interested in such a thing?

I’ve not released the code yet as it’s a bit of a mess, but if there’s any appetite for such a thing I will clean it all up.

See it here -
https://QZ5MKJOFRPCGIN7P.anvilapp.net/CNR2453M272GIHEHOBW7GNQM

3 Likes

I’d be interested (he says 1.5 years later). I’ll probably go forward in using your Custom HTML edition in my current project, but I think I would prefer it this way. Thanks!

edit: I see this is published now in the library: https://anvil.works/library/progress-bar-toggle-switch