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/.

CommentFileSizeAuthor
slider.patch2.57 KBskilip
slider.js.txt9.99 KBskilip

Comments

xano’s picture

Technically this might be easiest, but this mixes client stuff unnecessary for the backend with that backend.

Status: Needs review » Needs work

The last submitted patch failed testing.

skilip’s picture

Status: Needs work » Closed (won't fix)

I 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.