JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Window › customize the pop-up window event › Reply To: customize the pop-up window event
hello,
In fact, i followed your example, but the problem is that in “event.detail.editors” i found label, backgroundColor, notifications, .. and not the field that i’ve added.
the script that i used :
<div>
<div> ——————————————————————————————————
<div>
<div>let astreinteElement = editorsContainer.querySelector(‘#smart-input’);</div>
<div> if (!astreinteElement) {</div>
<div> const elementContainer = document.createElement(‘smart-check-box’),</div>
<div> label = document.createElement(‘astreinte’);</div>
<div> label.textContent = ‘Astreinte: ‘;</div>
<div> elementContainer.classList.add(‘smart-scheduler-window-editor’);</div>
<div> elementContainer.appendChild(label);</div>
<div> astreinteElement = document.createElement(‘smart-check-box’);</div>
<div> astreinteElement.id = ‘smart-input’;</div>
<div> elementContainer.append(astreinteElement);</div>
<div> editorsContainer.appendChild(elementContainer);</div>
<div> }</div>
</div>
<div> ——————————————————————————————————
<div></div>
<div>thank you for your help.</div>
</div>
</div>
</div>