Additional panel in the graph UI's sidebar. Currently only displayed when an element is selected
Both title and render can be:
title
render
HTMLElement
{ render: (node: Node): HTMLElement => { const div = document.createElement('div') div.textContent = node?.description ?? 'Empty node description' return div }, title: "My extra panel",} Copy
{ render: (node: Node): HTMLElement => { const div = document.createElement('div') div.textContent = node?.description ?? 'Empty node description' return div }, title: "My extra panel",}
Optional
should the panel be always visible
false Copy
false
Additional panel in the graph UI's sidebar. Currently only displayed when an element is selected
Both
titleandrendercan be:HTMLElementfor static content, orHTMLElementfor dynamic content based on the current selected node or edge.Example