
外掛標籤
開發者團隊
原文外掛簡介
GT Table Block extends the built-in core/table block with optional features that compose cleanly — each feature is an independent toggle, not a block style, so any combination can be active on the same table.
Available in this release:
Sticky header row — the
row pins to the top of the viewport while the table body scrolls. Includes a numeric offset control for sites with a fixed admin bar or site header. Pure CSS at runtime (no frontend JavaScript). The sticky background is an opaque CSS variable with full theme.json customization support (see FAQ below).Styled first column — gives the first column the same visual weight as the header row (bold, optional themeable background) and adds scope="row" to those cells in the saved markup so screen readers announce them as row headers. Addresses Gutenberg core issue #1470 (open since 2017). Pure CSS for the styling; the a11y attribute is added at save time only, so the editor preview stays unchanged.
Planned for future releases:
Sticky first column for wide tables with horizontal scroll — v0.3.0.
Merge / unmerge cells via a block toolbar control — v0.4.0.
Why a variation, not a replacement block?
The plugin deliberately extends core/table rather than forking it, so existing tables stay compatible with core as it evolves. Independent boolean attributes also let any combination of features be active at once — which block styles (a mutually exclusive radio group) cannot offer.
Source code
Source code, build tools, issue tracker, and development log: https://github.com/bph/gt-table-block
The plugin is built with @wordpress/scripts (see the repository’s README for build instructions). Each tagged release on GitHub corresponds to the stable tag published here.
