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.
This project is not covered by Drupal’s security advisory policy.
Provides an expandable table style plugin.
How to use
- Set up your view
- Configure a display to use the "Expandable table" style
- Put the portion that should expand into the last column
- When your view renders, the last column will initially be hidden, and will expand when the row is clicked
Frontend considerations
- The expandable row is literally another row in the markup of the table. If you're targeting odd/even rows for striping, you may need to adjust CSS accordingly.
- The trigger (the small, initially displaying row) and target (the expanding row) may be targeted using
tr[data-views-expandable-table-trigger]
andtr[data-views-expandable-table-target]
selectors accordingly. - The
expanded
class is applied to both the trigger and target rows when expanded. - The
views-expandable-table-hover
class is applied to both the trigger and target rows when either is hovered. - The trigger element can be configured to use the entire row (default), or to append a new element to the end of the row to expand the row.
Project information
- 80 sites report using this module
- Created by kerasai on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.