Guide

Power Spreadsheet

Excel-like tabbed container for Power Tables. Each tab is a sheet that holds one prc-block/table block.

Namespace

prc-block/power-spreadsheet

Category

text

Supports

FeatureDetail
AnchorYes
InteractivityYes
Alignwide, full
Spacingmargin, padding

Attributes

AttributeTypeDefaultDescription
activeSheetIndexnumber0Visible sheet index (role: local)

Context

DirectionKeyMaps to
Providesprc-block/power-spreadsheet/activeSheetIndexactiveSheetIndex

Inner blocks

allowedBlocks is only prc-block/table. An Excel-style tab row sits below the sheet content. Selecting a sheet table from the list view switches the active sheet.

Editor data store

Registers @wordpress/data store prc-block/power-spreadsheet so other editor plugins can read structured per-sheet data without parsing markup.

SelectorReturns
getSheetData( clientId )Array of { id, name, head, body, foot, columnMeta }
getSpreadsheetData( clientId ){ sheets: [...] } wrapper
const sheets = wp.data
	.select( 'prc-block/power-spreadsheet' )
	.getSheetData( spreadsheetClientId );

Was this helpful?