Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Views Expandable Table

No security coverage Under active development 109 sites

Part of the Views ecosystem · 280 projects

This module provides an expandable table style for Drupal Views. It allows you to hide content in the last column of a table row, which can then be revealed by clicking on the row. This is useful for displaying additional details without cluttering the main table view.

Provides an expandable table style plugin.

How to use

  1. Set up your view
  2. Configure a display to use the "Expandable table" style
  3. Put the portion that should expand into the last column
  4. 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] and tr[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 first or last visible column of the row (configurable).
  • If views bulk operations are on the table, the second column is selected when the 'First visible' value is used.
  • The trigger element can be configured to appear before the columns content or after the columns content. (Additional styling adjustments may be needed depending on which option you use.)

Ask your assistant about Views Expandable Table

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
6
Tracked since
Jul 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 4
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-rc5 Pre-release 9–11 May 13, 2025
1.0.0-rc4 Pre-release 9–11 May 12, 2025
1.0.0-rc3 Pre-release 9–11 May 12, 2025
1.0.0-rc2 Pre-release 9–10 Oct 22, 2024
1.0.0-rc1 Pre-release 9–10 Apr 16, 2024
1.0.0-alpha4 Pre-release 8–9 Jul 20, 2023