mirror of https://github.com/node-red/node-red.git
Updated Design: Editable port labels (markdown)
parent
6f460a06a9
commit
1b1b5b595d
|
@ -54,7 +54,8 @@ That is done by the `oneditsave` function setting a property on the node object
|
||||||
If `node-input-outputs` contains a simple integer, that is taken as the total number of outputs.
|
If `node-input-outputs` contains a simple integer, that is taken as the total number of outputs.
|
||||||
If it contains a JSON object, it is the equivalent to the `_outputs` object as described above. In doing so, the editor code will need to be updated handle that. It will super-cede and ultimately replace the `_outputs` object - an undocumented feature that can be replaced before it is adopted.
|
If it contains a JSON object, it is the equivalent to the `_outputs` object as described above. In doing so, the editor code will need to be updated handle that. It will super-cede and ultimately replace the `_outputs` object - an undocumented feature that can be replaced before it is adopted.
|
||||||
|
|
||||||
As an example, assume that the initial set of outputs are a,b,c,d. Assume that after configuring, the new outputs are z,a,c. The `node-input-outputs` should now be {"0":"1", "1":"-1", "2":"2", "3":"-1", "someRandomNo":"0"}
|
As an example, assume that the initial set of outputs are a,b,c,d. Assume that after configuring, the new outputs are z,a,c. The `node-input-outputs` should now be
|
||||||
An example for someRandomNo is Math.floor((0x99999 - 0x10000) * Math.random()).toString(16) (adapted from node-red sources)
|
{"0":"1", "1":"-1", "2":"2", "3":"-1", "someRandomNo":"0"}
|
||||||
|
where someRandomNo is generated from a function like Math.floor((0x99999 - 0x10000) * Math.random()).toString(16) (adapted from node-red sources)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue