Hi,
My custom node property resets itself after re-opening it to reconfigure.
I am editing it as it is seen in the below image.
But if I re-open it after deploying, the Search for property resets itself to All as seen in the below picture.
While the Output property does not show this behaviour.
Here is the code for the related part.
defaults: {
name: {value:""},
searchFor: {value:""},
searchForType: {value: ""},
output: {value:""},
outputType: {value: ""}
},
/////somethings////////
oneditprepare: function() {
$("#node-input-searchFor").typedInput({
types:[
{
value: "All",
label: "All",
hasValue: false
},
{
value: "Name",
label: "Local Name"
}],
typeField: "#node-input-searchForType"
});
$("#node-input-output").typedInput({
types:[
{
value: "Peripheral",
label: "",
options: ["MAC", "Peripheral", "Data"]
}],
typeField: "#node-input-searchForType"
});
}
It seems like I need to define a custom behaviour as it is explained here. I would appreciate any hint on this.