Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This patch is intended to be used at the module page. #538904: D8UX: Redesign Modules Page
Basically it adds a '#slider' attribute to FAPI checkboxes which can be set to TRUE or FALSE. If set to TRUE, the checkbox will be replaced by a slider. And it's fully degradable.
NOTE:
The slider.js file should be placed in misc/.
Comment | File | Size | Author |
---|---|---|---|
slider.patch | 2.57 KB | skilip | |
slider.js.txt | 9.99 KB | skilip |
Comments
Comment #1
XanoTechnically this might be easiest, but this mixes client stuff unnecessary for the backend with that backend.
Comment #3
skilip CreditAttribution: skilip commentedI had a little discussion with quicksketch about this slider thing. He made a good point that a mouse isn't really the right handler for slider behavior. This is more an UI element for multi-touch screens than for regular computers. I also had enough discussions with the UX team to be convinced this isn't a good idea for the module page.
Marking this as won't fix.