Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit 1c5ff9e

Browse files
Merge branch 'main' into v14/feature/block-area-permissions-display-content-type-name
2 parents f20bbee + bc4dda3 commit 1c5ff9e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/block-custom-view/block-custom-view.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import { html, customElement, LitElement, property, css } from '@umbraco-cms/bac
33
import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api';
44
import type { UmbBlockDataType, UmbBlockEditorCustomViewElement } from '@umbraco-cms/backoffice/extension-registry';
55

6+
// eslint-disable-next-line local-rules/enforce-umb-prefix-on-element-name
67
@customElement('example-block-custom-view')
8+
// eslint-disable-next-line local-rules/umb-class-prefix
79
export class ExampleBlockCustomView extends UmbElementMixin(LitElement) implements UmbBlockEditorCustomViewElement {
810
//
911
@property({ attribute: false })
@@ -13,7 +15,7 @@ export class ExampleBlockCustomView extends UmbElementMixin(LitElement) implemen
1315
return html`
1416
<div class="uui-text">
1517
<h5 class="uui-text">My Custom View</h5>
16-
<p>Headline: ${this.content.headline}</p>
18+
<p>Headline: ${this.content?.headline}</p>
1719
</div>
1820
`;
1921
}

0 commit comments

Comments
 (0)