kollapsminoriteten/wp-includes/blocks/table/block.json

221 lines
4.4 KiB
JSON
Raw Permalink Normal View History

2020-09-15 14:29:22 +02:00
{
2022-06-16 14:03:35 +02:00
"$schema": "https://schemas.wp.org/trunk/block.json",
2023-09-26 10:33:34 +02:00
"apiVersion": 3,
2020-09-15 14:29:22 +02:00
"name": "core/table",
2021-07-23 11:58:50 +02:00
"title": "Table",
2020-09-15 14:29:22 +02:00
"category": "text",
2022-04-02 10:26:41 +02:00
"description": "Create structured content in rows and columns to display information.",
2021-07-23 11:58:50 +02:00
"textdomain": "default",
2020-09-15 14:29:22 +02:00
"attributes": {
"hasFixedLayout": {
"type": "boolean",
2025-02-28 08:42:11 +01:00
"default": true
2020-09-15 14:29:22 +02:00
},
"caption": {
2024-04-17 11:32:24 +02:00
"type": "rich-text",
"source": "rich-text",
2025-12-12 13:15:55 +01:00
"selector": "figcaption",
"role": "content"
2020-09-15 14:29:22 +02:00
},
"head": {
"type": "array",
"default": [],
"source": "query",
"selector": "thead tr",
"query": {
"cells": {
"type": "array",
"default": [],
"source": "query",
"selector": "td,th",
"query": {
"content": {
2024-04-17 11:32:24 +02:00
"type": "rich-text",
2025-12-12 13:15:55 +01:00
"source": "rich-text",
"role": "content"
2020-09-15 14:29:22 +02:00
},
"tag": {
"type": "string",
"default": "td",
"source": "tag"
},
"scope": {
"type": "string",
"source": "attribute",
"attribute": "scope"
},
"align": {
"type": "string",
"source": "attribute",
"attribute": "data-align"
2023-04-26 17:39:43 +02:00
},
"colspan": {
"type": "string",
"source": "attribute",
"attribute": "colspan"
},
"rowspan": {
"type": "string",
"source": "attribute",
"attribute": "rowspan"
2020-09-15 14:29:22 +02:00
}
}
}
}
},
"body": {
"type": "array",
"default": [],
"source": "query",
"selector": "tbody tr",
"query": {
"cells": {
"type": "array",
"default": [],
"source": "query",
"selector": "td,th",
"query": {
"content": {
2024-04-17 11:32:24 +02:00
"type": "rich-text",
2025-12-12 13:15:55 +01:00
"source": "rich-text",
"role": "content"
2020-09-15 14:29:22 +02:00
},
"tag": {
"type": "string",
"default": "td",
"source": "tag"
},
"scope": {
"type": "string",
"source": "attribute",
"attribute": "scope"
},
"align": {
"type": "string",
"source": "attribute",
"attribute": "data-align"
2023-04-26 17:39:43 +02:00
},
"colspan": {
"type": "string",
"source": "attribute",
"attribute": "colspan"
},
"rowspan": {
"type": "string",
"source": "attribute",
"attribute": "rowspan"
2020-09-15 14:29:22 +02:00
}
}
}
}
},
"foot": {
"type": "array",
"default": [],
"source": "query",
"selector": "tfoot tr",
"query": {
"cells": {
"type": "array",
"default": [],
"source": "query",
"selector": "td,th",
"query": {
"content": {
2024-04-17 11:32:24 +02:00
"type": "rich-text",
2025-12-12 13:15:55 +01:00
"source": "rich-text",
"role": "content"
2020-09-15 14:29:22 +02:00
},
"tag": {
"type": "string",
"default": "td",
"source": "tag"
},
"scope": {
"type": "string",
"source": "attribute",
"attribute": "scope"
},
"align": {
"type": "string",
"source": "attribute",
"attribute": "data-align"
2023-04-26 17:39:43 +02:00
},
"colspan": {
"type": "string",
"source": "attribute",
"attribute": "colspan"
},
"rowspan": {
"type": "string",
"source": "attribute",
"attribute": "rowspan"
2020-09-15 14:29:22 +02:00
}
}
}
}
}
},
"supports": {
"anchor": true,
2020-12-10 14:06:04 +01:00
"align": true,
2021-07-23 11:58:50 +02:00
"color": {
"__experimentalSkipSerialization": true,
2022-06-16 14:03:35 +02:00
"gradients": true,
"__experimentalDefaultControls": {
"background": true,
"text": true
}
2021-07-23 11:58:50 +02:00
},
2022-12-15 17:47:31 +01:00
"spacing": {
"margin": true,
2023-09-26 10:33:34 +02:00
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
2022-12-15 17:47:31 +01:00
},
2022-04-02 10:26:41 +02:00
"typography": {
"fontSize": true,
"lineHeight": true,
2022-12-15 17:47:31 +01:00
"__experimentalFontFamily": true,
2022-04-02 10:26:41 +02:00
"__experimentalFontStyle": true,
"__experimentalFontWeight": true,
"__experimentalLetterSpacing": true,
"__experimentalTextTransform": true,
2022-12-15 17:47:31 +01:00
"__experimentalTextDecoration": true,
2022-04-02 10:26:41 +02:00
"__experimentalDefaultControls": {
"fontSize": true
}
},
2021-07-23 11:58:50 +02:00
"__experimentalBorder": {
"__experimentalSkipSerialization": true,
"color": true,
"style": true,
2022-06-16 14:03:35 +02:00
"width": true,
"__experimentalDefaultControls": {
"color": true,
"style": true,
"width": true
}
2021-07-23 11:58:50 +02:00
},
2024-04-17 11:32:24 +02:00
"interactivity": {
"clientNavigation": true
}
2021-04-27 08:32:47 +02:00
},
2025-04-25 12:30:07 +02:00
"selectors": {
"root": ".wp-block-table > table",
"spacing": ".wp-block-table"
},
2021-07-23 11:58:50 +02:00
"styles": [
{
"name": "regular",
"label": "Default",
"isDefault": true
},
{ "name": "stripes", "label": "Stripes" }
],
2021-04-27 08:32:47 +02:00
"editorStyle": "wp-block-table-editor",
"style": "wp-block-table"
2020-09-15 14:29:22 +02:00
}