# Flowviewer Idea

**URL:** <https://discourse.nodered.org/t/flowviewer-idea/96485>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [9 April 2025 02:31 UTC](https://discourse.nodered.org/t/flowviewer-idea/96485 "2025-04-09T02:31:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roland](https://avatars.discourse-cdn.com/v4/letter/r/3ab097/32.png) [@Roland](https://discourse.nodered.org/u/Roland)\
**Post date:** [9 April 2025 02:31 UTC](https://discourse.nodered.org/t/flowviewer-idea/96485/1 "2025-04-09T02:31:42Z")

</div>

I am using @flowfuse/node-red-dashboard-2-ui-flowviewer to support documentation of flows.  
My question or **requirement** is - is it possible to get an event out of flowviewer when a single node is clicked in dashboard.  
As I can see flowviewer is based on svg and every node is a `<g>`-Element. The idea is to get a msg from flowviewer with the data-node-id when an element is clicked "click event".  
So I can extract and show details from the .json-file for example when I click on a function-node - I want to show the js-sourcecode of this function.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [9 April 2025 06:15 UTC](https://discourse.nodered.org/t/flowviewer-idea/96485/2 "2025-04-09T06:15:05Z")

</div>

The answer is no, but please feel free you raise a feature request on [the repository](https://github.com/FlowFuse/node-red-dashboard-2-ui-flowviewer/issues).

If you feel adventurous, you could probably achieve your need using JavaScript in a ui-template.

---

<div class="post-metadata">

**Author:** ![Roland](https://avatars.discourse-cdn.com/v4/letter/r/3ab097/32.png) [@Roland](https://discourse.nodered.org/u/Roland)\
**Post date:** [9 April 2025 08:44 UTC](https://discourse.nodered.org/t/flowviewer-idea/96485/3 "2025-04-09T08:44:47Z")

</div>

thx for your reply, I open a feature request. Your idea with js in a template-node is good, but at the moment I have not yet an idea how to achieve this.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [9 April 2025 08:46 UTC](https://discourse.nodered.org/t/flowviewer-idea/96485/4 "2025-04-09T08:46:55Z")

</div>

Issue raised here: [Get an event when a node is selected · Issue #14 · FlowFuse/node-red-dashboard-2-ui-flowviewer · GitHub](https://github.com/FlowFuse/node-red-dashboard-2-ui-flowviewer/issues/14)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [9 May 2025 08:47 UTC](https://discourse.nodered.org/t/flowviewer-idea/96485/5 "2025-05-09T08:47:42Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
