balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

block.json (2870B)


      1 {
      2 	"apiVersion": 2,
      3 	"name": "core/table",
      4 	"title": "Table",
      5 	"category": "text",
      6 	"description": "Insert a table — perfect for sharing charts and data.",
      7 	"textdomain": "default",
      8 	"attributes": {
      9 		"hasFixedLayout": {
     10 			"type": "boolean",
     11 			"default": false
     12 		},
     13 		"caption": {
     14 			"type": "string",
     15 			"source": "html",
     16 			"selector": "figcaption",
     17 			"default": ""
     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": "string",
     33 							"source": "html"
     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 					}
     51 				}
     52 			}
     53 		},
     54 		"body": {
     55 			"type": "array",
     56 			"default": [],
     57 			"source": "query",
     58 			"selector": "tbody tr",
     59 			"query": {
     60 				"cells": {
     61 					"type": "array",
     62 					"default": [],
     63 					"source": "query",
     64 					"selector": "td,th",
     65 					"query": {
     66 						"content": {
     67 							"type": "string",
     68 							"source": "html"
     69 						},
     70 						"tag": {
     71 							"type": "string",
     72 							"default": "td",
     73 							"source": "tag"
     74 						},
     75 						"scope": {
     76 							"type": "string",
     77 							"source": "attribute",
     78 							"attribute": "scope"
     79 						},
     80 						"align": {
     81 							"type": "string",
     82 							"source": "attribute",
     83 							"attribute": "data-align"
     84 						}
     85 					}
     86 				}
     87 			}
     88 		},
     89 		"foot": {
     90 			"type": "array",
     91 			"default": [],
     92 			"source": "query",
     93 			"selector": "tfoot tr",
     94 			"query": {
     95 				"cells": {
     96 					"type": "array",
     97 					"default": [],
     98 					"source": "query",
     99 					"selector": "td,th",
    100 					"query": {
    101 						"content": {
    102 							"type": "string",
    103 							"source": "html"
    104 						},
    105 						"tag": {
    106 							"type": "string",
    107 							"default": "td",
    108 							"source": "tag"
    109 						},
    110 						"scope": {
    111 							"type": "string",
    112 							"source": "attribute",
    113 							"attribute": "scope"
    114 						},
    115 						"align": {
    116 							"type": "string",
    117 							"source": "attribute",
    118 							"attribute": "data-align"
    119 						}
    120 					}
    121 				}
    122 			}
    123 		}
    124 	},
    125 	"supports": {
    126 		"anchor": true,
    127 		"align": true,
    128 		"color": {
    129 			"__experimentalSkipSerialization": true,
    130 			"gradients": true
    131 		},
    132 		"__experimentalBorder": {
    133 			"__experimentalSkipSerialization": true,
    134 			"color": true,
    135 			"style": true,
    136 			"width": true
    137 		},
    138 		"__experimentalSelector": ".wp-block-table > table"
    139 	},
    140 	"styles": [
    141 		{
    142 			"name": "regular",
    143 			"label": "Default",
    144 			"isDefault": true
    145 		},
    146 		{ "name": "stripes", "label": "Stripes" }
    147 	],
    148 	"editorStyle": "wp-block-table-editor",
    149 	"style": "wp-block-table"
    150 }