mirror of
https://github.com/FJurmanovic/wallet-web.git
synced 2026-02-06 06:08:10 +00:00
use custom elements for application layout
This commit is contained in:
@@ -37,15 +37,15 @@ class MenuLayoutElement extends BaseLayoutElement {
|
||||
html`<div>
|
||||
<app-link data-go-back="true" data-title="Go back"></app-link>
|
||||
</div>`}
|
||||
<div data-target="menu-layout.slotted"></div>
|
||||
<app-slot data-target="menu-layout.appSlot"></app-slot>
|
||||
`;
|
||||
}
|
||||
|
||||
update = () => {
|
||||
render(this.render(), this);
|
||||
const _slotted = this._slotted;
|
||||
if (_slotted && this.slotted) {
|
||||
this.slotted.innerHTML = _slotted;
|
||||
const _appSlot = this._appSlot;
|
||||
if (_appSlot && this.appSlot) {
|
||||
this.appSlot.innerHTML = _appSlot;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user