[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/table/ -> block.json (source)

   1  {
   2      "$schema": "https://schemas.wp.org/trunk/block.json",
   3      "apiVersion": 3,
   4      "name": "core/table",
   5      "title": "Table",
   6      "category": "text",
   7      "description": "Create structured content in rows and columns to display information.",
   8      "textdomain": "default",
   9      "attributes": {
  10          "hasFixedLayout": {
  11              "type": "boolean",
  12              "default": true
  13          },
  14          "caption": {
  15              "type": "rich-text",
  16              "source": "rich-text",
  17              "selector": "figcaption",
  18              "role": "content"
  19          },
  20          "head": {
  21              "type": "array",
  22              "default": [],
  23              "source": "query",
  24              "selector": "thead tr",
  25              "query": {
  26                  "cells": {
  27                      "type": "array",
  28                      "default": [],
  29                      "source": "query",
  30                      "selector": "td,th",
  31                      "query": {
  32                          "content": {
  33                              "type": "rich-text",
  34                              "source": "rich-text",
  35                              "role": "content"
  36                          },
  37                          "tag": {
  38                              "type": "string",
  39                              "default": "td",
  40                              "source": "tag"
  41                          },
  42                          "scope": {
  43                              "type": "string",
  44                              "source": "attribute",
  45                              "attribute": "scope"
  46                          },
  47                          "align": {
  48                              "type": "string",
  49                              "source": "attribute",
  50                              "attribute": "data-align"
  51                          },
  52                          "colspan": {
  53                              "type": "string",
  54                              "source": "attribute",
  55                              "attribute": "colspan"
  56                          },
  57                          "rowspan": {
  58                              "type": "string",
  59                              "source": "attribute",
  60                              "attribute": "rowspan"
  61                          }
  62                      }
  63                  }
  64              }
  65          },
  66          "body": {
  67              "type": "array",
  68              "default": [],
  69              "source": "query",
  70              "selector": "tbody tr",
  71              "query": {
  72                  "cells": {
  73                      "type": "array",
  74                      "default": [],
  75                      "source": "query",
  76                      "selector": "td,th",
  77                      "query": {
  78                          "content": {
  79                              "type": "rich-text",
  80                              "source": "rich-text",
  81                              "role": "content"
  82                          },
  83                          "tag": {
  84                              "type": "string",
  85                              "default": "td",
  86                              "source": "tag"
  87                          },
  88                          "scope": {
  89                              "type": "string",
  90                              "source": "attribute",
  91                              "attribute": "scope"
  92                          },
  93                          "align": {
  94                              "type": "string",
  95                              "source": "attribute",
  96                              "attribute": "data-align"
  97                          },
  98                          "colspan": {
  99                              "type": "string",
 100                              "source": "attribute",
 101                              "attribute": "colspan"
 102                          },
 103                          "rowspan": {
 104                              "type": "string",
 105                              "source": "attribute",
 106                              "attribute": "rowspan"
 107                          }
 108                      }
 109                  }
 110              }
 111          },
 112          "foot": {
 113              "type": "array",
 114              "default": [],
 115              "source": "query",
 116              "selector": "tfoot tr",
 117              "query": {
 118                  "cells": {
 119                      "type": "array",
 120                      "default": [],
 121                      "source": "query",
 122                      "selector": "td,th",
 123                      "query": {
 124                          "content": {
 125                              "type": "rich-text",
 126                              "source": "rich-text",
 127                              "role": "content"
 128                          },
 129                          "tag": {
 130                              "type": "string",
 131                              "default": "td",
 132                              "source": "tag"
 133                          },
 134                          "scope": {
 135                              "type": "string",
 136                              "source": "attribute",
 137                              "attribute": "scope"
 138                          },
 139                          "align": {
 140                              "type": "string",
 141                              "source": "attribute",
 142                              "attribute": "data-align"
 143                          },
 144                          "colspan": {
 145                              "type": "string",
 146                              "source": "attribute",
 147                              "attribute": "colspan"
 148                          },
 149                          "rowspan": {
 150                              "type": "string",
 151                              "source": "attribute",
 152                              "attribute": "rowspan"
 153                          }
 154                      }
 155                  }
 156              }
 157          }
 158      },
 159      "supports": {
 160          "anchor": true,
 161          "align": true,
 162          "background": {
 163              "__experimentalSkipSerialization": true,
 164              "gradient": true
 165          },
 166          "color": {
 167              "__experimentalSkipSerialization": [
 168                  "text",
 169                  "background",
 170                  "gradients"
 171              ],
 172              "gradients": true,
 173              "link": true,
 174              "__experimentalDefaultControls": {
 175                  "background": true,
 176                  "text": true
 177              }
 178          },
 179          "spacing": {
 180              "margin": true,
 181              "padding": true,
 182              "__experimentalDefaultControls": {
 183                  "margin": false,
 184                  "padding": false
 185              }
 186          },
 187          "typography": {
 188              "__experimentalSkipSerialization": [ "textAlign" ],
 189              "fontSize": true,
 190              "lineHeight": true,
 191              "__experimentalFontFamily": true,
 192              "__experimentalFontStyle": true,
 193              "__experimentalFontWeight": true,
 194              "__experimentalLetterSpacing": true,
 195              "__experimentalTextTransform": true,
 196              "__experimentalTextDecoration": true,
 197              "textAlign": true,
 198              "__experimentalDefaultControls": {
 199                  "fontSize": true
 200              }
 201          },
 202          "__experimentalBorder": {
 203              "__experimentalSkipSerialization": true,
 204              "color": true,
 205              "style": true,
 206              "width": true,
 207              "__experimentalDefaultControls": {
 208                  "color": true,
 209                  "style": true,
 210                  "width": true
 211              }
 212          },
 213          "interactivity": {
 214              "clientNavigation": true
 215          }
 216      },
 217      "selectors": {
 218          "root": ".wp-block-table > table",
 219          "spacing": ".wp-block-table"
 220      },
 221      "styles": [
 222          {
 223              "name": "regular",
 224              "label": "Default",
 225              "isDefault": true
 226          },
 227          { "name": "stripes", "label": "Stripes" }
 228      ],
 229      "editorStyle": "wp-block-table-editor",
 230      "style": "wp-block-table"
 231  }


Generated : Wed Nov 4 08:20:38 2026 Cross-referenced by PHPXref