Running oneditprepare again after reconfiguring


have a config node div in my custom node, as a config type:

RED.nodes.registerType('json-config', {
        category: 'config',
        defaults: {
            title: {
                value: "",
                required: true
            jsonInput: {
                value: "",
                required: true
            jsonOutput: {
                value: "",
                required: true
        label: function () {
            return this.title

and it is in my main custom node included as:

<div class="form-row">
        <label for="node-input-config"><i class="fa fa-globe"></i> Config</label>
        <input type="text" id="node-input-config" placeholder="Config">

if i click update on my config type how can i trigger anything in the parent node to reconfigure for example. Is there an event like onconfigchange or something?

You dont re-run oneditprepare you watch for change.

The MQTT node does this...


See source here: node-red/10-mqtt.html at 4667e76c6bb0f3bc334edf6d7c6d32d733ce6176 · node-red/node-red · GitHub

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