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
| Feature | Detail |
|---|---|
| Anchor | Yes |
| Interactivity | Yes |
| Align | wide, full |
| Spacing | margin, padding |
Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
activeSheetIndex | number | 0 | Visible sheet index (role: local) |
Context
| Direction | Key | Maps to |
|---|---|---|
| Provides | prc-block/power-spreadsheet/activeSheetIndex | activeSheetIndex |
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.
| Selector | Returns |
|---|---|
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 );