# Request: Editable Properties Bar

**URL:** <https://discourse.nodered.org/t/request-editable-properties-bar/52970>\
**Category:** Feature Requests\
**Tags:** editor\
**Created:** [30 October 2021 09:48 UTC](https://discourse.nodered.org/t/request-editable-properties-bar/52970 "2021-10-30T09:48:10Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [30 October 2021 19:14 UTC](https://discourse.nodered.org/t/request-editable-properties-bar/52970/21 "2021-10-30T19:14:44Z")

</div>

> [@hardillb](#):
>
> Which is exactly why it's a REALLY BAD idea from a user experience point of view

Hmm perhaps it would have been better if I had written _"multiple levels"_ instead of _"infinite levels"_. Because you are right that infinitive levels would be a horrible user experience.  
However if the grid would only offer one single level, then there are lots of properties it cannot display: originally I wanted to develop such an editor for my node-red-contrib-onvif-nodes: for example in Onvif you can specify (an array of) multiple video sources, each with its own properties. Each video source can have a resolution (which in turn has x and y values), and a video format like mp4 (which has in turn has other mp4 related properties), ...  
So a widget that only offers one single level cannot solve my issue. So I have never been able to finish those nodes for NPM publishing, since I have never had time to solve this...

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [30 October 2021 19:45 UTC](https://discourse.nodered.org/t/request-editable-properties-bar/52970/22 "2021-10-30T19:45:32Z")

</div>

@BartButenaers with upgoing node you have agreed to do with me you are on position to find solutions to provide one level set of option to satisfy multi level options to set. I have some Ideas to discuss but those are in deep of the non existing thing so not yet public.

It is possible and important to have - default makes the widget to show something. Somethung which directs a route to proper configuration changes.

---

<div class="post-metadata">

**Author:** ![Christian-Me](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christian-me/32/10774_2.png) [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)\
**Post date:** [30 October 2021 20:02 UTC](https://discourse.nodered.org/t/request-editable-properties-bar/52970/23 "2021-10-30T20:02:25Z")

</div>

Even if we go totally of topic now:

> [@BartButenaers](#):
>
> Each video source can have a resolution (which in turn has x and y values), and a video format like mp4 (which has in turn has other mp4 related properties), ...

Here is how I solved as similar problem (array of objects with different properties)  
 ![FZ1dGx1hGU](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/f/ef38a32f24f84da9c52f83c67912659be9cf7013.gif)  
certainly you can go deeper and put a editable list within an editable list - if there is any need to do so

> [@TotallyInformation](#):
>
> Personally, I would like to see a much simplified method for creating the edit panel without needing so much HMTL boilerplate and mixed jQuery JavaScript.

Personally I got rid of nearly all HTML and packed all jQuery stuff inside my own class/object. Mainly because I currently use the editableList a lot. This enables me to define all UI elements with a single line of code each taking care of all the other things including collecting all the data during `oneditsave`. My capabilities here are limited and I would be more than happy to adopt anything provided same as I'm happy the use of the core widgets.

Back to topic:

> [@dceejay](#):
>
> Personally I would hate a bunch of editable properties. Just dumped as a list of properties without any context and not well named.

This was not intended at all. Making the list editable needs to group them (like you might do with tabs or paragraphs), sort them, hide them if necessary, name them (very difficult, humans are not known to be good in naming things). Giving the right options and tools for data input and perhaps provide some tool-tips and/or context sensitive help. As I tried to explain with my screenshots the user experience don't have to be so different and should not replace the "Big Screen".

> [@knolleary](#):
>
> That's not to say we couldn't provide a better way to generate a node's edit dialog from a schema of some sort. That would be useful - and we already have the groundwork for that with the subflow property UI work.

As I tried to say and sorry it may be misunderstood perhaps due to English is not my mother's tongue the problem and idea is grounded on the problem that the amount of time invested into the config UI is not related to the actual functionality of the node itself. I appreciate the development and documentation of the UI widgets which helped me a lot. Packing them together into a schema driven dialog form system could make live easier for the developers and the user experience more consistent. And perhaps open a lot of possibilities including an editable properties bar 😉 (if it is useful and desired by the overall Node-RED experience) 🙄

BTW: What is the intention of the properties panel? I find it very useful to quickly test my nodes during development if the UI produces the result that I intended to do. But for all the rest I don't have any use for it.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [30 October 2021 20:14 UTC](https://discourse.nodered.org/t/request-editable-properties-bar/52970/24 "2021-10-30T20:14:50Z")

</div>

> [@Christian-Me](#):
>
> BTW: What is the intention of the properties panel? I find it very useful to quickly test my nodes during development if the UI produces the result that I intended to do. But for all the rest I don't have any use for it.

Which properties panel are you referring to?

---

<div class="post-metadata">

**Author:** ![Christian-Me](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christian-me/32/10774_2.png) [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)\
**Post date:** [30 October 2021 20:16 UTC](https://discourse.nodered.org/t/request-editable-properties-bar/52970/25 "2021-10-30T20:16:08Z")

</div>

The info panel, sorry

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/4/2460a459487f857bae7bfff7928b96d5784f7643.png)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [30 October 2021 20:16 UTC](https://discourse.nodered.org/t/request-editable-properties-bar/52970/26 "2021-10-30T20:16:43Z")

</div>

> [@knolleary](#):
>
> > [@TotallyInformation](#):
> >
> > For example, being able to tell if a property has changed from its last deployed setting would be extremely helpful.
> 
> You mention this as an example event... when would this event be triggered? We already have the `nodes:changed` event that is emitted whenever a node is edited (such as when the edit dialog is closed) - do you mean it would be helpful if that event included more details of what has changed?

The `nodes:changed` event tells me that _something_ has changed but not what. It also doesn't tell me whether what has changed is actually different to what was last deployed.

> [@knolleary](#):
>
> > [@TotallyInformation](#):
> >
> > We also have property validation functions but they are triggered differently to when the UI itself is changed which is confusing.
> 
> That is true - the one function does do double duty. So are you saying you'd prefer a separate function for when the node is being edited versus when it has been imported?

It wouldn't have to be a separate function. It might just be some additional information to identify what stage things were at. Such as the initial editor load.

> [@knolleary](#):
>
> Do you mean in the `oneditprepare` function? No-one has asked to be able to do so, and I can't say I've ever come across a scenario where this is needed. If you have a specific use case where this would be useful that would help understand the requirement more.

I've only just come across this scenario myself 🙂

oneditprepare is fired when you open the panel. But the validation functions are run when the editor loads as well.

What I need is to be able to check the uibuilder URL. When it changes, I need to be able to make sure that the url isn't already in use. I can do that by calling an API when the validation function runs. But then I don't really need to if it is only when the editor is loading.

Also, things happen differently if you copy/paste a node. In that case, the new node gets all of the settings of the old apart from the ID. Obviously that is a problem because I can't have two uibuilder nodes with the same url. So really I need to detect that (it can happen if you import an exported node/flow from the same instance as well).

At the moment, I'm having to track both the deployed instances of uibuilder and the editor instances since people can make multiple changes or multiple additions before doing a deploy and all instances need to be unique both in the editor and when deployed.

Of course, it is possible that I'm over-thinking things but I keep hitting edge-cases that are hard to track and detect.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [30 October 2021 20:34 UTC](https://discourse.nodered.org/t/request-editable-properties-bar/52970/27 "2021-10-30T20:34:37Z")

</div>

> [@Christian-Me](#):
>
> BTW: What is the intention of the properties panel? I find it very useful to quickly test my nodes during development if the UI produces the result that I intended to do. But for all the rest I don't have any use for it.

It tells you about what you've got selected. Being able to check a node's configuration without opening the dialog can be useful. But there's also a reason the properties are hidden by default - they aren't necessarily going to be used by everyone.

---

<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:** [29 December 2021 20:35 UTC](https://discourse.nodered.org/t/request-editable-properties-bar/52970/28 "2021-12-29T20:35:34Z")

</div>

Closed on 29 December 2021 20:35 UTC

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

[Previous page](https://discourse.nodered.org/t/request-editable-properties-bar/52970.md?page=1)
