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

Responsive Tables Filter

8,406 sites Security covered Drupal 10–11
View on drupal.org

This module automatically makes tables in WYSIWYG content and Drupal Views responsive on smaller screens by transforming column headers into rows. It's useful for sites where content editors are not comfortable manually adding HTML markup for responsive table behavior.

Summary

This module makes tables in WYSIWYGs and Drupal Views fit on smaller screens. The Filament Group's Tablesaw technique moves column headers into rows:


It makes the following tables responsive:

  • Any tables within fields where Drupal text format filters can be applied
  • Views tables

Similar modules

This module should not be confused with responsive_table_filter, which uses a different method to achieve small-device-friendly tables.

When should I this module?

Drupal does allow for tables to be responsive, but content editors must manually define what priority each table row should be, and must manually add classes to HTML markup in WYSIWYG fields. This module does a best effort at automating this (at the cost fine-grained control). If your site's content editors are not comfortable working with HTML markup, this module is a good fit.

Usage

  1. Enable this module and go to admin/config/content/formats.
  2. Enable the filter "Make tables responsive" on any text formats for which you want to make tables responsive (e.g., Filtered HTML).
  3. Verify the text format(s) allow HTML table tags (see "Limit HTML tags"). All of the following should be allowed:<table> <th> <tr> <td> <thead> <tbody> <tfoot>
  4. Select which default table behavior you prefer. See the documentation at https://github.com/filamentgroup/tablesaw#tablesaw . Individual tables can override this default by specifying tablesaw-stack, tablesaw-columntoggle, or tablesaw-swipe as a class on the table tag.
  5. If you are using a WYSIWYG toolbar (e.g., CKEditor), verify that its content filtering is not interfering with table styling (see the README for more details).
  6. Add a table! Note: Tables must have a<thead> tag for responsive behavior to take effect.
  7. If you want Views tables to be responsive, enable this at /admin/config/content/responsive_tables_filter

Documentation

https://www.drupal.org/docs/contributed-modules/responsive-tables-filter

Can I change the breakpoints for the library?

To change the responsive table breakpoints to something other than the defaults, copy the tablesaw-responsive.css CSS file into your theme, modify it as needed, and register the file as an override in your theme's libraries.yml file.

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
Sep 2024
Latest release
2 months ago
Releases (12 mo)
3 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
2.1.2 Stable 10–11 Jun 8, 2026
2.1.1 Stable 10–11 Feb 13, 2026
2.1.0 Stable 10–11 Jan 7, 2026
2.0.2 Stable 10–11 Sep 27, 2024