[ 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          },
  19          "head": {
  20              "type": "array",
  21              "default": [],
  22              "source": "query",
  23              "selector": "thead tr",
  24              "query": {
  25                  "cells": {
  26                      "type": "array",
  27                      "default": [],
  28                      "source": "query",
  29                      "selector": "td,th",
  30                      "query": {
  31                          "content": {
  32                              "type": "rich-text",
  33                              "source": "rich-text"
  34                          },
  35                          "tag": {
  36                              "type": "string",
  37                              "default": "td",
  38                              "source": "tag"
  39                          },
  40                          "scope": {
  41                              "type": "string",
  42                              "source": "attribute",
  43                              "attribute": "scope"
  44                          },
  45                          "align": {
  46                              "type": "string",
  47                              "source": "attribute",
  48                              "attribute": "data-align"
  49                          },
  50                          "colspan": {
  51                              "type": "string",
  52                              "source": "attribute",
  53                              "attribute": "colspan"
  54                          },
  55                          "rowspan": {
  56                              "type": "string",
  57                              "source": "attribute",
  58                              "attribute": "rowspan"
  59                          }
  60                      }
  61                  }
  62              }
  63          },
  64          "body": {
  65              "type": "array",
  66              "default": [],
  67              "source": "query",
  68              "selector": "tbody tr",
  69              "query": {
  70                  "cells": {
  71                      "type": "array",
  72                      "default": [],
  73                      "source": "query",
  74                      "selector": "td,th",
  75                      "query": {
  76                          "content": {
  77                              "type": "rich-text",
  78                              "source": "rich-text"
  79                          },
  80                          "tag": {
  81                              "type": "string",
  82                              "default": "td",
  83                              "source": "tag"
  84                          },
  85                          "scope": {
  86                              "type": "string",
  87                              "source": "attribute",
  88                              "attribute": "scope"
  89                          },
  90                          "align": {
  91                              "type": "string",
  92                              "source": "attribute",
  93                              "attribute": "data-align"
  94                          },
  95                          "colspan": {
  96                              "type": "string",
  97                              "source": "attribute",
  98                              "attribute": "colspan"
  99                          },
 100                          "rowspan": {
 101                              "type": "string",
 102                              "source": "attribute",
 103                              "attribute": "rowspan"
 104                          }
 105                      }
 106                  }
 107              }
 108          },
 109          "foot": {
 110              "type": "array",
 111              "default": [],
 112              "source": "query",
 113              "selector": "tfoot tr",
 114              "query": {
 115                  "cells": {
 116                      "type": "array",
 117                      "default": [],
 118                      "source": "query",
 119                      "selector": "td,th",
 120                      "query": {
 121                          "content": {
 122                              "type": "rich-text",
 123                              "source": "rich-text"
 124                          },
 125                          "tag": {
 126                              "type": "string",
 127                              "default": "td",
 128                              "source": "tag"
 129                          },
 130                          "scope": {
 131                              "type": "string",
 132                              "source": "attribute",
 133                              "attribute": "scope"
 134                          },
 135                          "align": {
 136                              "type": "string",
 137                              "source": "attribute",
 138                              "attribute": "data-align"
 139                          },
 140                          "colspan": {
 141                              "type": "string",
 142                              "source": "attribute",
 143                              "attribute": "colspan"
 144                          },
 145                          "rowspan": {
 146                              "type": "string",
 147                              "source": "attribute",
 148                              "attribute": "rowspan"
 149                          }
 150                      }
 151                  }
 152              }
 153          }
 154      },
 155      "supports": {
 156          "anchor": true,
 157          "align": true,
 158          "color": {
 159              "__experimentalSkipSerialization": true,
 160              "gradients": true,
 161              "__experimentalDefaultControls": {
 162                  "background": true,
 163                  "text": true
 164              }
 165          },
 166          "spacing": {
 167              "margin": true,
 168              "padding": true,
 169              "__experimentalDefaultControls": {
 170                  "margin": false,
 171                  "padding": false
 172              }
 173          },
 174          "typography": {
 175              "fontSize": true,
 176              "lineHeight": true,
 177              "__experimentalFontFamily": true,
 178              "__experimentalFontStyle": true,
 179              "__experimentalFontWeight": true,
 180              "__experimentalLetterSpacing": true,
 181              "__experimentalTextTransform": true,
 182              "__experimentalTextDecoration": true,
 183              "__experimentalDefaultControls": {
 184                  "fontSize": true
 185              }
 186          },
 187          "__experimentalBorder": {
 188              "__experimentalSkipSerialization": true,
 189              "color": true,
 190              "style": true,
 191              "width": true,
 192              "__experimentalDefaultControls": {
 193                  "color": true,
 194                  "style": true,
 195                  "width": true
 196              }
 197          },
 198          "__experimentalSelector": ".wp-block-table > table",
 199          "interactivity": {
 200              "clientNavigation": true
 201          }
 202      },
 203      "styles": [
 204          {
 205              "name": "regular",
 206              "label": "Default",
 207              "isDefault": true
 208          },
 209          { "name": "stripes", "label": "Stripes" }
 210      ],
 211      "editorStyle": "wp-block-table-editor",
 212      "style": "wp-block-table"
 213  }


Generated : Sat Dec 21 08:20:01 2024 Cross-referenced by PHPXref