Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
enter(domNode, element) {
super.enter(domNode, element);
this
.topPercentage(0)
.topSize(0)
.setContent("top", this._toolbar)
;
this.getCell("top").surfaceShadow(true);
const context = this;
this._propsButton = new OnOff()
.id(this.id() + "_props")
.value("Properties")
.on("click", function () {
context
.toggleProperties()
.render()
;
})
;
this._toolbar.widgets([this._propsButton]);
}