wp/wp-includes/blocks/navigation-submenu/block.json
changeset 19 3d72ae0968f4
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
       
     1 {
       
     2 	"$schema": "https://schemas.wp.org/trunk/block.json",
       
     3 	"apiVersion": 2,
       
     4 	"name": "core/navigation-submenu",
       
     5 	"title": "Submenu",
       
     6 	"category": "design",
       
     7 	"parent": [ "core/navigation" ],
       
     8 	"description": "Add a submenu to your navigation.",
       
     9 	"textdomain": "default",
       
    10 	"attributes": {
       
    11 		"label": {
       
    12 			"type": "string"
       
    13 		},
       
    14 		"type": {
       
    15 			"type": "string"
       
    16 		},
       
    17 		"description": {
       
    18 			"type": "string"
       
    19 		},
       
    20 		"rel": {
       
    21 			"type": "string"
       
    22 		},
       
    23 		"id": {
       
    24 			"type": "number"
       
    25 		},
       
    26 		"opensInNewTab": {
       
    27 			"type": "boolean",
       
    28 			"default": false
       
    29 		},
       
    30 		"url": {
       
    31 			"type": "string"
       
    32 		},
       
    33 		"title": {
       
    34 			"type": "string"
       
    35 		},
       
    36 		"kind": {
       
    37 			"type": "string"
       
    38 		},
       
    39 		"isTopLevelItem": {
       
    40 			"type": "boolean"
       
    41 		}
       
    42 	},
       
    43 	"usesContext": [
       
    44 		"textColor",
       
    45 		"customTextColor",
       
    46 		"backgroundColor",
       
    47 		"customBackgroundColor",
       
    48 		"overlayTextColor",
       
    49 		"customOverlayTextColor",
       
    50 		"overlayBackgroundColor",
       
    51 		"customOverlayBackgroundColor",
       
    52 		"fontSize",
       
    53 		"customFontSize",
       
    54 		"showSubmenuIcon",
       
    55 		"maxNestingLevel",
       
    56 		"openSubmenusOnClick",
       
    57 		"style"
       
    58 	],
       
    59 	"supports": {
       
    60 		"reusable": false,
       
    61 		"html": false
       
    62 	},
       
    63 	"editorStyle": "wp-block-navigation-submenu-editor",
       
    64 	"style": "wp-block-navigation-submenu"
       
    65 }