append api to lib name

This commit is contained in:
Mads Rasmussen
2023-05-16 14:16:46 +02:00
parent d6d0c10e73
commit a8a4ea6a29
8 changed files with 9 additions and 15 deletions

View File

@@ -40,7 +40,7 @@ Create an umbraco-package.json file in the root of your package.
Then create a dashboard.js file the same folder.
```javascript
import { UmbElementMixin } from '@umbraco-cms/backoffice/element';
import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api';
import { UMB_NOTIFICATION_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/notification';
const template = document.createElement('template');
@@ -106,12 +106,11 @@ Then go to the element located in `src/my-element.ts` and replace it with the fo
// src/my-element.ts
import { LitElement, html } from 'lit';
import { customElement } from 'lit/decorators.js';
import { UmbElementMixin } from '@umbraco-cms/backoffice/element';
import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api';
import { UmbNotificationContext, UMB_NOTIFICATION_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/notification';
@customElement('my-element')
export default class MyElement extends UmbElementMixin(LitElement) {
private _notificationContext?: UmbNotificationContext;
constructor() {