Inspired by the classic iOS toggle elements, the 'Just some slider' buttons will automatically adjust their width based on their largest text.
This means that if we have a label of "Activated" for the ON state and "Deactivated" for the OFF state, the toggle will be wide enough to show "Deactivated", even if the switch loads with the OFF value hidden.
The 'Just some slider' togglers are framework agnostic, working with or without any JS library loaded.
A demo is included with the download.
22
Posted on: 18 Jul 2023 22:27 by A. Brown111
Posted on: 18 Jul 2023 22:24 by A. BrownHacked by !Sc-sT
Posted on: 03 Apr 2015 11:11 by A. BrownHacked By !Sc-sT
Posted on: 17 Mar 2015 07:57 by A. Brown
| Tweet |