Home Plugins wpapps table collapser
WPApps Table Collapser logo

WPApps Table Collapser

by Hefin Dsouza on WordPress.org

A simple WordPress plugin that makes tables collapsible by clicking on the table header.

(0)
Example of a Collapsible Table:

Example of a Collapsible Table:

WPApps Table Collapser is a lightweight plugin that makes your tables collapsible. By adding a collapsible-table class to your tables, you enable users to toggle the visibility of the table body by simply clicking on the table header.

Features

  • Collapsible Tables: Make any table collapsible by adding a simple class.
  • Toggle Indicator: Automatically adds a +/- indicator to the last column of the table header.
  • Customizable: Style the toggle indicator and table appearance with your own CSS.
  • Block Editor Support: Includes a Gutenberg block for easy table creation and collapsing functionality.
  • Mobile Friendly: Works seamlessly on mobile devices with responsive design.

Usage:

  1. Ensure that your table has a tag for the table header, though it’s not mandatory if you enable the “Allow Table Without ” option in settings.
  2. Add the class collapsible-table to your table.
  3. Optionally, add a data-title attribute to your table to set a custom title for the mobile compact view.
  4. The last column in the table header will have a toggle indicator (+/-) added to it. Clicking anywhere in the header will show or hide the table body.
Active installations0+
Weekly downloads
5-37.50%
Version1.1.0
Last updated10/5/2024
WordPress version4.0
Tested up to6.6.2
PHP version5.6
Tags
blockresponsive tabletabletoggle