# Announce node-red-contrib-ui-svg : feedback request

**URL:** <https://discourse.nodered.org/t/announce-node-red-contrib-ui-svg-feedback-request/14431>\
**Category:** Share Your Nodes\
**Created:** [17 August 2019 22:41 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-svg-feedback-request/14431 "2019-08-17T22:41:20Z")\
**Posts on this page:** 1\
**Showing post:** 27

<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:** [19 August 2019 13:04 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-svg-feedback-request/14431/27 "2019-08-19T13:04:10Z")

</div>

hmmmm, so where to start?

I know - I'll start with - I really don't mean to step on anyone's toes or upset anyone - I only wish to help 👼

I understand @bakman2 request for `"event": "clicked"` but to force this into payload? Surely payload is what the user wants to send?

I know we could force the output to `"payload": { "elementId": "myCircle", "event": "clicked" }` but what would be the point of using a `typedInput`? The typedInput provides the kind of flexibility that makes node-red super convenient.

I find permitting the user to specify his own `payload` (be that a timestamp, bool, JSON etc) greatly reduces the need for extra `change` nodes afterwards.

**Could we please compromise?** 🙏

[Someone once told me](https://discourse.nodered.org/t/flogger-the-advanced-logging-node/12382/43) when they wish to include extra information in a `msg` (but not necessarily want it in the payload), to avoid collisions and to provide consistency, they add an object to the msg like `msg.nodename.props` & include whatever they need to. I took that on board & find it very useful.

e.g. imagine this `msg` structure...

```auto
{
 ui_sgv: {
  event: "click",
  elementId: "myCircle",
  coordinates: { x: 27, y: 33 }
 }
 topic : "camera/1/ptz"
 payload : { pan: 90, tilt: 120, zoom: 3 }
}

```

- `msg.ui_sgv` is auto generated & includes whatever extra useful info we wish (and is extensible)
- `msg.topic` and `msg.payload` are whatever the user desired (as entered in the form).

I much prefer this means of topic/payload and it is in line with many of the better nodes including (to name a few) inject, trigger, dashboard ui\_button...  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/2/2aa3863e150e2a1418e186e24eb04e89a6cb973d.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/2/2ec930ec7d489d4bde7aed6d4d6f9a82ee46dc93.png)

I have already added (on my local copy of your code) the typed input & it works great. So to round this off & hopefully I have sold it to you, this is a demo of it...

 ![ui-svg](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/5/56497ac36f4e673ce7d1650a816b3826cc3a5ee3.gif)

---

_[View the full topic](https://discourse.nodered.org/t/announce-node-red-contrib-ui-svg-feedback-request/14431)._
