Select by table cell hover, not checkbox hover

Created on 21 February 2018, about 7 years ago
Updated 6 November 2023, over 1 year ago

Currently you have to hover the checkbox itself but it would be easier to check the checkbox when hovering the parent cell.
This will require to write own callbacks for dragCheck({}).

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

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

Comments & Activities

Not all content is available!

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

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    MR welcome! :)

  • First commit to issue fork.
  • πŸ‡ΊπŸ‡ΈUnited States euk
  • Open on Drupal.org β†’
    Core: 10.1.4 + Environment: PHP 8.2 & MySQL 8
    last update over 1 year ago
    Waiting for branch to pass
  • @euk opened merge request.
  • Open on Drupal.org β†’
    Core: 10.1.4 + Environment: PHP 8.2 & MySQL 8
    last update over 1 year ago
    Waiting for branch to pass
  • Status changed to Needs work over 1 year ago
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    Thanks @euk, nice one! :) That's something I wanted to do for years :D

    Left a comment. Afterwards we should get feedback, if it works well. Could you explain the changes, especially clickToToggle: false a bit?

  • Open on Drupal.org β†’
    Core: 10.1.4 + Environment: PHP 8.2 & MySQL 8
    last update over 1 year ago
    Waiting for branch to pass
  • πŸ‡ΊπŸ‡ΈUnited States euk

    Could you explain the changes, especially clickToToggle: false a bit?

    The changes are inspired by the libraries readme page, which is quite small and doesn't provide much info. In the nutshell, first of all, the plugin is applied to table cells and not the checkboxes directly. This calls for using the callbacks as follows:
    - onChange: to color the cells based on the status of the containing checkbox,
    - getChecked: to read checkbox status
    - setChecked: to find and mark the checkbox as per provided state

    As for the clickToToggle - the documentation doesn't have much info, but setting it to FALSE seems to help the whole thing.

  • Status changed to Needs review over 1 year ago
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica
Production build 0.71.5 2024