开发者 | @hefind |
---|---|
更新时间 | 2024年10月5日 15:34 |
PHP版本: | 5.6 及以上 |
WordPress版本: | 6.6.2 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
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
+/-
indicator to the last column of the table header.<thead>
tag for the table header, though it's not mandatory if you enable the "Allow Table Without <thead>
" option in settings.collapsible-table
to your table.data-title
attribute to your table to set a custom title for the mobile compact view.+/-
) added to it. Clicking anywhere in the header will show or hide the table body.wpapps-table-collapser
folder to the /wp-content/plugins/
directory.collapsible-table
class to any table you want to make collapsible.For optimal functionality, the table should have a <thead>
tag defining the header. The collapsing functionality is primarily activated by clicking on this header. However, if you enable the "Allow Table Without <thead>
" option in the settings, the plugin will also work without a <thead>
.
Yes, you can style the toggle indicator by targeting the .toggle-indicator
class in your CSS.
You can add a data-title
attribute to your table element to set a custom title that will be displayed in the mobile compact view.
Yes, the plugin includes a Gutenberg block for easy creation and management of collapsible tables.