layout fixes for edit

This commit is contained in:
Fran Jurmanovic
2021-08-02 04:31:59 -07:00
parent 4abcba0143
commit 86a8852784
15 changed files with 130 additions and 17 deletions

View File

@@ -4,19 +4,23 @@ import { BaseElement } from 'common/';
import { isTrue } from 'core/utils';
class BasePageElement extends BaseElement {
public pageTitle: string = '';
public _pageTitle: string = '';
@attr hidetitle: string;
@attr customtitle: string;
private _data: any;
constructor(options: OptionType) {
super();
if (options?.title) {
this.pageTitle = options?.title;
this._pageTitle = options?.title;
}
this.connectedCallback = this.connectedCallback.bind(this);
this.disconnectedCallback = this.disconnectedCallback.bind(this);
}
get pageTitle() {
return this._pageTitle;
}
public renderTitle = () => {
if (!isTrue(this.hidetitle)) {
return html`<div class="page --title">${this.customtitle ? this.customtitle : this.pageTitle}</div>`;