Skip to content

Commit cd104ab

Browse files
committed
Formatting
1 parent 303c876 commit cd104ab

File tree

1 file changed

+6
-7
lines changed
  • 16/umbraco-cms/customizing/extending-overview/extension-types

1 file changed

+6
-7
lines changed

16/umbraco-cms/customizing/extending-overview/extension-types/header-apps.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ Header App extensions appear next to the user profile and the global search icon
88

99
<figure><img src="../../../.gitbook/assets/header-apps.svg" alt=""><figcaption><p>Header Apps</p></figcaption></figure>
1010

11-
## Button Header App as a link
12-
## Registering a header app using a manifest
11+
## Button Header Apps as a link
1312
Extension authors can create header apps that link to resource both inside and outside the backoffice. Header apps can be created using a manifest or using TypeScript.
1413

1514
To create a link-style header app, define a `headerApp` extension in the `umbraco-package.json` file. Be sure to include `meta.label` and `meta.icon` so that your header app appears when you reload the backoffice.
@@ -20,7 +19,7 @@ Header Apps can also be created using TypeScript. Examples of both approaches ar
2019

2120
{% tabs %}
2221
{% tab title="Using the Package Manifest" %}
23-
{% code title="umbraco-package.json" lineNumbers="true" %}
22+
{% code title="umbraco-package.json" %}
2423
```json
2524
{
2625
"$schema": "../../umbraco-package-schema.json",
@@ -45,7 +44,7 @@ Header Apps can also be created using TypeScript. Examples of both approaches ar
4544
{% endcode %}
4645
{% endtab %}
4746
{% tab title="Using TypeScript" %}
48-
{% code title="my-element.ts" lineNumbers="true" %}
47+
{% code title="my-element.ts" %}
4948
Create an object that implements the `UmbExtensionManifest` interface, then register the extension with the `umbExtensionsRegistry` service.
5049

5150
```typescript
@@ -69,7 +68,7 @@ umbExtensionsRegistry.register(manifest);
6968
{% endtab %}
7069
{% endtabs %}
7170

72-
## Button Header App with deeper interactivity
71+
## Button Header Apps with deeper interactivity
7372

7473
Extension authors can also create header apps that have more interactivity than a simple link.
7574

@@ -83,7 +82,7 @@ In order for a header app to have some functionality, extension authors will nee
8382

8483
{% tabs %}
8584
{% tab title="Package Manifest" %}
86-
{% code title="umbraco-package.json" lineNumbers="true" %}
85+
{% code title="umbraco-package.json" %}
8786
```json
8887
{
8988
"$schema": "../../umbraco-package-schema.json",
@@ -103,8 +102,8 @@ In order for a header app to have some functionality, extension authors will nee
103102
{% endcode %}
104103
{% endtab %}
105104
{% tab title="TypeScript" %}
106-
{% code title="src/server-services-header.ts" lineNumbers="true" %}
107105
*This example assumes that the extension author has transpiled the above TypeScript code into a JavaScript file. The name and location of this file should match the `element` property in the manifest.*
106+
{% code title="src/server-services-header.ts" lineNumbers="true" %}
108107
```typescript
109108
import { html, customElement } from "@umbraco-cms/backoffice/external/lit";
110109
import { UmbHeaderAppButtonElement } from "@umbraco-cms/backoffice/components";

0 commit comments

Comments
 (0)