Make the trigger type a configurable option

Created on 8 April 2022, about 2 years ago
Updated 20 July 2023, 11 months ago

Problem/Motivation

While working on a system for a client, we introduced views bulk operations into the table. This made it difficult at times to check the checkbox on each row without triggering the expansion/collapsing. This patch introduces a table settings (style options) checkbox to disable (enabled by default) the clickable row, and instead appends a span to the end of the last visible column to expand/collapse the table.

Steps to reproduce

This issue is most identifiable with views bulk operations, so install this module with views bulk operations and get a view setup with some content to use both. The checkboxes for VBO can be difficult to target/click without triggering the table row expansion.

Proposed resolution

Add in a 'settings' configuration option to use a triggering element (instead of the default triggering row) to trigger the expand/collapse.

When not using the entire table row, append a new span to the end of the last visible column and attach the trigger class to it for clicking.

User interface changes

There is now an additional 'table settings' option when using the views expandable table views style that is checked by default. The default setting is to use the table row as the trigger.

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jfurnas

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.

Production build 0.69.0 2024