跳到内容

WPApps Table Collapser

v1.1.0

Hefin Dsouza · 2024年7月4日 上架

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

正在使用
10+
评分
暂无
累计下载
842
最近更新
2024年10月5日
需要 WordPress 4.0+已测试到 6.6.12PHP 5.6+

贡献者

截图

Example of a Collapsible Table:
Example of a Collapsible Table:
Settings Page:
Settings Page:
Detailed Guidelines on CSS Customization:
Detailed Guidelines on CSS Customization:
Responsive Table View:
Responsive Table View:
Block Support:
Block Support:

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 <thead> tag for the table header, though it’s not mandatory if you enable the “Allow Table Without <thead>” 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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums