remove custom view test kode

This commit is contained in:
Niels Lyngsø
2024-09-28 20:54:43 +02:00
parent 94d230c0f6
commit 4252a7ef96
2 changed files with 0 additions and 37 deletions

View File

@@ -1,29 +0,0 @@
import type { UmbBlockDataType } from '@umbraco-cms/backoffice/block';
import type { UmbBlockEditorCustomViewElement } from '@umbraco-cms/backoffice/block-custom-view';
import { css, customElement, html, property } from '@umbraco-cms/backoffice/external/lit';
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
@customElement('umb-custom-view-test')
export class UmbCustomViewTestElement extends UmbLitElement implements UmbBlockEditorCustomViewElement {
@property({ attribute: false })
content?: UmbBlockDataType;
protected override render() {
return html` Hello ${this.content?.headline} `;
}
static override styles = [
css`
:host {
display: block;
height: 100%;
box-sizing: border-box;
background-color: #dddddd;
border-radius: 9px;
padding: 12px;
}
`,
];
}
export { UmbCustomViewTestElement as element };

View File

@@ -1,8 +0,0 @@
export const manifest: UmbExtensionManifest = {
type: 'blockEditorCustomView',
alias: 'Umb.blockEditorCustomView.TestView',
name: 'Block Editor Custom View Test',
element: () => import('./custom-view.element.js'),
forContentTypeAlias: 'elementTypeHeadline',
forBlockEditor: 'block-grid',
};