Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

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.)

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
4
Tracked since
Oct 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 4
Maintenance
Dormant

Release Timeline

Releases

Version Type Core 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