|
40 |
41 | {header.label}
42 |
43 | |
44 | ))}
45 |
| 66 | {value} 67 | | 68 | ) 69 | })} 70 |
This is a dialog with a script!
21 | 22 | 23 | `) 24 | } 25 | 26 | // // Create a script element 27 | // let script = dialogWindow.document.createElement("script"); 28 | // script.type = "text/javascript"; 29 | // script.textContent = ` 30 | // console.log("Script is running in the dialog!"); 31 | // alert("This is a script inside the dialog!"); 32 | // `; 33 | 34 | // // Append the script to the dialog's document 35 | // dialogWindow.document.body.appendChild(script); 36 | // } else { 37 | // console.error("Failed to create dialog window."); 38 | // } 39 | 40 | return; 41 | 42 | 43 | // log(` 44 | // 45 | // 46 | // 47 | // 48 | // 49 | // 50 | // 51 | 52 | //