By bnjmnm on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
9.1.x
Introduced in version:
9.1.0-alpha1
Issue links:
Description:
The handles in tabledrag were previously hard coded, and are now provided by the tableDragHandle() theme function.
For example, it would be possible to add a data-drupal-selector attribute to the tabledrag handle by overriding the theme function like this:
Drupal.theme.tableDragHandle = () => {
return `<a href="#" data-drupal-selector="added-in-override"
class="tabledrag-handle"><div class="handle"> </div></a>`;
},
Impacts:
Module developers
Themers