All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.factoryEditing.base.Widget.js Maven / Gradle / Ivy

There is a newer version: 4.0.2
Show newest version
//generated code don't edit manually
export class Widget {
    bindModel() {
        this.reRender(this.render());
    }
    append(parent) {
        this.parent = parent;
        this.bindModel();
    }
    reRender(newRendered) {
        if (this.rendered && this.parent.contains(this.rendered)) {
            this.parent.replaceChild(newRendered, this.rendered);
        }
        else {
            this.parent.appendChild(newRendered);
        }
        this.rendered = newRendered;
    }
    renderOnce() {
        if (this.renderedToParent != this.parent) {
            this.renderedToParent = this.parent;
            this.reRender(this.render());
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy