Skip to main content

Table

A data table with sorting, search, pagination and a sticky header.

The block renders through the table element — the same PHP that runs in the page builder, so the front end is identical either way.

What the sidebar exposes

OptionWhat it does
tableThe table itself — columns, rows and cells
table_presetTable style preset
frame_presetFrame around the table
style_stripedAlternate row shading
style_hoverHighlight the row under the pointer
style_borderedCell borders
style_condensedTighter rows
sticky_headerKeep the header visible while scrolling
captionCaption text
caption_positionAbove or below
enable_sortLet visitors sort by column
enable_searchAdd a search box
enable_paginationPaginate long tables
pagination_lengthRows per page
enable_length_changeLet visitors change that
enable_infoShow the "showing X of Y" line
text_colorCell text colour
bg_colorBackground
font_size_presetText size preset

Anything not listed stays available in the page builder, and round-trips untouched.

Cells are edited in the sidebar, as a list of rows

The table control lists each row's cells rather than drawing a grid — a sidebar column is not a grid. Column alignment and width, and the header and footer row counts, are here.

Merging cells stays in the page builder, where there is a grid to merge across. Merges made there survive editing here untouched: the control spreads a cell when its text changes rather than rebuilding it.

Sorting, search and pagination do not work in the canvas

All three replace what the table is showing, which in an editor means the preview stops being a preview of the rows you are editing.