Merge pull request #1399 from JaySunSyn/patch-1

docs(overlays): apply missing OverlayMixin
This commit is contained in:
Joren Broekema 2021-06-01 17:42:50 +02:00 committed by GitHub
commit a38ff90eed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,13 +69,13 @@ const ctrl = new OverlayController({
Or creating your own Web Component which uses the Overlay System
```js
import { LitElement } from '@lion/core';
import { LitElement, html } from '@lion/core';
import { OverlayMixin, withModalDialogConfig } from '@lion/overlays';
class MyOverlayComponent extends LitElement {
class MyOverlayComponent extends OverlayMixin(LitElement) {
_defineOverlayConfig() {
return {
...withModalDialogConfig,
...withModalDialogConfig(),
};
}