extend umb lit element
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { html, LitElement, customElement } from '@umbraco-cms/backoffice/external/lit';
|
||||
import { html, customElement } from '@umbraco-cms/backoffice/external/lit';
|
||||
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
||||
|
||||
@customElement('umb-document-blueprint-root-workspace')
|
||||
export class UmbDocumentBlueprintRootWorkspaceElement extends LitElement {
|
||||
export class UmbDocumentBlueprintRootWorkspaceElement extends UmbLitElement {
|
||||
render() {
|
||||
return html`<div>Document Blueprint Root Workspace</div> `;
|
||||
}
|
||||
|
||||
@@ -1,20 +1,13 @@
|
||||
import type {
|
||||
ManifestWorkspace,
|
||||
ManifestWorkspaceAction,
|
||||
ManifestWorkspaceView,
|
||||
} from '@umbraco-cms/backoffice/extension-registry';
|
||||
import type { ManifestWorkspace } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
const workspace: ManifestWorkspace = {
|
||||
type: 'workspace',
|
||||
alias: 'Umb.Workspace.DocumentBlueprint.Root',
|
||||
name: 'Document Blueprint Root Workspace',
|
||||
js: () => import('./document-blueprint-root-workspace.element.js'),
|
||||
element: () => import('./document-blueprint-root-workspace.element.js'),
|
||||
meta: {
|
||||
entityType: 'document-blueprint-root',
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [];
|
||||
const workspaceActions: Array<ManifestWorkspaceAction> = [];
|
||||
|
||||
export const manifests = [workspace, ...workspaceViews, ...workspaceActions];
|
||||
export const manifests = [workspace];
|
||||
|
||||
Reference in New Issue
Block a user