Skip to content

Commit 80233be

Browse files
committed
Menu: Updated file names to use gitbook markup
1 parent 35effb1 commit 80233be

File tree

1 file changed

+6
-1
lines changed
  • 14/umbraco-cms/customizing/extending-overview/extension-types

1 file changed

+6
-1
lines changed

14/umbraco-cms/customizing/extending-overview/extension-types/menu.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ The manifest can also be written in TypeScript.
9494

9595
For this typescript example we used a [Backoffice Entry Point](../../extending-overview/extension-types/backoffice-entry-point) extension to register the manifests
9696

97+
{% code title="manifest.ts" overflow="wrap" lineNumbers="true" %}
9798
```typescript
9899
const menuItemManifest: Array<ManifestMenuItem> = [
99100
{
@@ -108,6 +109,8 @@ const menuItemManifest: Array<ManifestMenuItem> = [
108109
}
109110
];
110111
```
112+
{% endcode %}
113+
111114

112115
{% endtab %}
113116

@@ -134,7 +137,7 @@ By default, you can set the `has-children` attribute to display the caret icon i
134137

135138
You can fetch the data and render the menu items using the Lit element above. By putting the result of the fetch in a `@state()`, we can trigger a re-render of the component when the data is fetched.
136139

137-
**menu-items.ts:**
140+
{% code title="menu-items.ts" overflow="wrap" lineNumbers="true" %}
138141
```typescript
139142
import { UmbMenuItemElement } from '@umbraco-cms/backoffice/extension-registry';
140143
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
@@ -210,6 +213,8 @@ declare global {
210213
}
211214

212215
```
216+
{% endcode %}
217+
213218

214219
## Tree Menu Item
215220

0 commit comments

Comments
 (0)