2021-11-08 21:17:17 -05:00
|
|
|
{
|
2022-04-12 11:12:47 -04:00
|
|
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
2023-06-27 10:24:19 -04:00
|
|
|
"apiVersion": 3,
|
2021-11-08 21:17:17 -05:00
|
|
|
"name": "core/navigation-submenu",
|
|
|
|
"title": "Submenu",
|
|
|
|
"category": "design",
|
2022-04-12 11:12:47 -04:00
|
|
|
"parent": [ "core/navigation" ],
|
2021-11-08 21:17:17 -05:00
|
|
|
"description": "Add a submenu to your navigation.",
|
|
|
|
"textdomain": "default",
|
|
|
|
"attributes": {
|
|
|
|
"label": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"rel": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"opensInNewTab": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"url": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"title": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"kind": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"isTopLevelItem": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"usesContext": [
|
|
|
|
"textColor",
|
|
|
|
"customTextColor",
|
|
|
|
"backgroundColor",
|
|
|
|
"customBackgroundColor",
|
|
|
|
"overlayTextColor",
|
|
|
|
"customOverlayTextColor",
|
|
|
|
"overlayBackgroundColor",
|
|
|
|
"customOverlayBackgroundColor",
|
|
|
|
"fontSize",
|
|
|
|
"customFontSize",
|
|
|
|
"showSubmenuIcon",
|
2022-04-12 11:12:47 -04:00
|
|
|
"maxNestingLevel",
|
2021-11-08 21:17:17 -05:00
|
|
|
"openSubmenusOnClick",
|
|
|
|
"style"
|
|
|
|
],
|
|
|
|
"supports": {
|
|
|
|
"reusable": false,
|
2024-02-09 13:22:22 -05:00
|
|
|
"html": false,
|
2024-09-19 21:55:35 -04:00
|
|
|
"typography": {
|
|
|
|
"fontSize": true,
|
|
|
|
"lineHeight": true,
|
|
|
|
"__experimentalFontFamily": true,
|
|
|
|
"__experimentalFontWeight": true,
|
|
|
|
"__experimentalFontStyle": true,
|
|
|
|
"__experimentalTextTransform": true,
|
|
|
|
"__experimentalTextDecoration": true,
|
|
|
|
"__experimentalLetterSpacing": true,
|
|
|
|
"__experimentalDefaultControls": {
|
|
|
|
"fontSize": true
|
|
|
|
}
|
|
|
|
},
|
2024-02-09 13:22:22 -05:00
|
|
|
"interactivity": {
|
|
|
|
"clientNavigation": true
|
|
|
|
}
|
2021-11-08 21:17:17 -05:00
|
|
|
},
|
|
|
|
"editorStyle": "wp-block-navigation-submenu-editor",
|
|
|
|
"style": "wp-block-navigation-submenu"
|
|
|
|
}
|