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