Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Short Version - What is the best way to add vis-network's "configure" options at dashboard creation? (Mostly answered on my own, but requires regex and injecting javascript which i'd like to avoid... perhaps this is better resolved as feature request?)
https://visjs.github.io/vis-network/docs/network/configure.html
Background
I spend a lot of time generating diagrams over and over, trying to achieve that perfect layout. Typically i'll bounce between vscode, online JS IDEs and the various "Configurator/Configure" examples here: https://visjs.github.io/vis-network/examples/
Configurator demos i frequent the most:
So I figured I could save a ton of time if i added the Configurator panel to my diagrams...
Progress so far
I've discovered that a vanilla diagram will work without
container: document.getElementById("Config"). But, once you add panels or sections, it doesnt get rendered. Hence the need for a single panel with AnchorName set to "Config".The sample below is a hierarchical diagram with obfuscated data. I've also simplified my original code as much as possible.
The part that i dont like is the regex replace which currently works, but would prefer to use something in the PSWriteHTML module.
Add-HTMLScript -ReplaceDataseemed relevant, but i couldnt figure out how to use it.Also, I sincerely appreciate all the years of work put into this module.
Thank you!!!
Matt
Beta Was this translation helpful? Give feedback.
All reactions