Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
createPanel() {
this.panel = document.createElement('div');
this.panel.className = 'ui-password-panel ui-widget ui-state-highlight ui-corner-all';
this.meter = document.createElement('div');
this.meter.className = 'ui-password-meter';
this.info = document.createElement('div');
this.info.className = 'ui-password-info';
this.info.textContent = this.promptLabel;
this.panel.appendChild(this.meter);
this.panel.appendChild(this.info);
this.panel.style.minWidth = DomHandler.getOuterWidth(this.el.nativeElement) + 'px';
document.body.appendChild(this.panel);
}