Merge branch 'main' into v14/feature/only-show-app-language-selector-when-more-than-one-language
This commit is contained in:
@@ -3,7 +3,9 @@ import { html, customElement, LitElement, property, css } from '@umbraco-cms/bac
|
||||
import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api';
|
||||
import type { UmbBlockDataType, UmbBlockEditorCustomViewElement } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
// eslint-disable-next-line local-rules/enforce-umb-prefix-on-element-name
|
||||
@customElement('example-block-custom-view')
|
||||
// eslint-disable-next-line local-rules/umb-class-prefix
|
||||
export class ExampleBlockCustomView extends UmbElementMixin(LitElement) implements UmbBlockEditorCustomViewElement {
|
||||
//
|
||||
@property({ attribute: false })
|
||||
@@ -13,7 +15,7 @@ export class ExampleBlockCustomView extends UmbElementMixin(LitElement) implemen
|
||||
return html`
|
||||
<div class="uui-text">
|
||||
<h5 class="uui-text">My Custom View</h5>
|
||||
<p>Headline: ${this.content.headline}</p>
|
||||
<p>Headline: ${this.content?.headline}</p>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user