Merge pull request #1399 from JaySunSyn/patch-1
docs(overlays): apply missing OverlayMixin
This commit is contained in:
commit
a38ff90eed
1 changed files with 3 additions and 3 deletions
|
|
@ -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(),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue