7/23/2025 12:40 PM | |
Joined: 8/3/2009 Last visit: 9/5/2025 Posts: 16349 Rating:
|
Hello daniel_salvini Check also the application examples in Siemens Website, because there are some useful information for creating CWCs: https://support.industry.siemens.com/cs/de/en/view/109794040 Bye Murof |
If this Information really helps, you could use the Rate function |
|
8/1/2025 9:08 AM | |
Joined: 6/23/2023 Last visit: 9/3/2025 Posts: 4 Rating:
|
Hi Murof, Thank you for your replied. I checked the application examples but i couldnt find any informations about my question. I know that Wincc Unifed doesn't access to the standard DOM. That's why some method like “classList.toggle()” doesnt' work. In visual studio code this script works: const sidebarToggler = document.querySelector(".sidebar-toggler"); So when i press the button it activate every css element have “collapsed”.
In wincc unifed it wont work. A solution could be a script like this: const sidebarToggler = document.querySelector(".sidebar-toggler");
if (enableCssElement === true) { let myClass = document.getElementsByClassName('myClass'); for(var i=0; i <myClass.length; i ++) } but it's very laborious.
EDIT: i found my error, it worked also with the firs solution.
|
Last edited by: daniel_salvini at: 08/01/2025 09:11:21Last edited by: daniel_salvini at: 08/01/2025 14:03:28 |
|
Follow us on