Make tabledrag configurable at an element level

Created on 24 August 2018, about 6 years ago
Updated 2 October 2024, about 2 months ago

Problem/Motivation

The table drag enabled controls are currently at a per entity type level and determined by the handler. This makes it quite difficult if you are making use of an entity provided by another module (e.g. commerce order items). It should be possible for widgets to change this behaviour, so custom widgets have the control.

Proposed resolution

Allow a #tabledrag option in the element which allows a widget (or potentially form alter etc) to disable the table drag.

API changes

Addition of an element key to give additional flexibility.

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom andrewbelcher

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.

  • 🇦🇺Australia geoffreyr

    I've been trying this out with an implementation that uses IEF Table View Mode and so far it's working well. Much more concise and reliable than patching IEF to remove the sort elements. I'm not going to RTBC it until we test and deploy it, but this looks really promising.

Production build 0.71.5 2024