Allow range selection with shift+click

Created on 25 November 2022, almost 2 years ago
Updated 12 May 2024, 6 months ago

Problem/Motivation

In a multi-select, it is common to be able to select a range of items by clicking on the "start position" and then shift+clicking the "end position". All items in between, including the ones that were clicked, get selected. However, with this module, this doesn't happen.

Remaining tasks

User interface changes

Adds ability to select a range of options with Shift + Click.

* Select range start item
* Shift click range end item

All items in the range are selected.

API changes

Data model changes

Feature request
Status

RTBC

Version

1.0

Component

Code

Created by

🇨🇦Canada jigarius Montréal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • alexandre baron made their first commit to this issue’s fork.

  • Status changed to Needs review over 1 year ago
  • hello,

    I worked on this issue . We are using the patch on a prod project. It works correctly.

  • Status changed to RTBC over 1 year ago
  • 🇨🇦Canada jigarius Montréal

    Cool! I tested this to be working fine. Thanks for this feature. It'd be great to have this merged ASAP (before the PR starts having merge conflicts).

    Thoughts

    Doing some searches, I realized that there are no nice 2-column list selection widgets in general (like the one in this module). IMHO, it'd be great if we could use an already existing JS library with this module (if we can find one). Alternatively, it might be a good idea to create a GitHub project for just a 2 column selection widget like the one in this module. However, I'd suggest using SELECT boxes in them instead of emulating SELECT's behavior with UL/LI like this module does. If I get time, I'll try to create such a project so that everyone can have an improved SELECT widget.

  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 8.0 & MySQL 5.7 (--ignore-platform-reqs)
    last update 6 months ago
    2 pass
  • Hello , i did a rebase so the branch is ready to be merge.

Production build 0.71.5 2024