Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Please, please provide samples of:
- Tabledrag only
- Tableselect only
- Both together
Including submit handlers.
Comments
Comment #2
NancyDruComment #3
jweowu CreditAttribution: jweowu at Catalyst IT commentedNote that the header comments for
elements_pre_render_table()
provide an example of using tabledrag and tableselect (although not including a submit handler). I've reproduced that below.I found that (for my admin theme at least) combining tabledrag and tableselect caused the checkbox element to overlap the drag handle element, such that you could see the drag handle, but you couldn't interact with it.
I used the following CSS to fix that:
The current example code is: