add label/relation from menu

This commit is contained in:
zadam
2020-07-14 23:29:37 +02:00
parent 528418aecb
commit 3d02f82c77
4 changed files with 93 additions and 52 deletions

View File

@@ -51,7 +51,9 @@ class BasicWidget extends Component {
this.$widget.addClass('component')
.prop('component', this);
this.toggleInt(this.isEnabled());
if (!this.isEnabled()) {
this.toggleInt(false);
}
if (this.cssEl) {
const css = this.cssEl.trim().startsWith('<style>') ? this.cssEl : `<style>${this.cssEl}</style>`;