You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 16/umbraco-cms/customizing/extending-overview/extension-types/kind.md
+7-10Lines changed: 7 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,9 @@ To register a Kind, use the same method as other extensions. The key properties
29
29
The following example shows how to register a Button Kind for [**Header Apps**](../extension-types/header-apps.md). This kind provides a preset configuration for a button element that can be reused by other Header App extensions.
-`type` is set to 'kind' to register it as a Kind extension.
47
49
-`matchType` is 'headerApp', specifying that this Kind is for Header App extensions.
@@ -78,15 +80,15 @@ Here’s an example of how to register and use the Button Kind in a Header App e
78
80
79
81
{% code title="kinds/manifests.ts" %}
80
82
81
-
{% hint style="warning" %}
83
+
{% hint style="info" %}
82
84
This example uses the dynamic extension registration approach. `umbExtensionsRegistry.register()` might be called from within an entrypoint lifecycle method like `onInit()`. For more information, see the [Backoffice Entry Point](./backoffice-entry-point.md) article.
alias: 'Umb.Kind.MyButtonKind', // Alias for the Kind
92
94
matchType: 'headerApp', // Extension type the Kind applies to
@@ -105,11 +107,6 @@ This code registers the Button Kind, so other Header App extensions using `type:
105
107
Now another Header App extension can be created without defining `elementName`, as it will automatically inherit it from the Kind:
106
108
107
109
{% code title="kinds/manifests.ts" %}
108
-
109
-
{% hint style="warning" %}
110
-
This example uses the dynamic extension registration approach. `umbExtensionsRegistry.register()` might be called from within an entrypoint lifecycle method like `onInit()`. For more information, see the [Backoffice Entry Point](./backoffice-entry-point.md) article.
0 commit comments