I'm creating a custom node, and for my UI I want to have a group of checkboxes for the user to select. When a checkbox is selected/deselected, I want this to toggle an array index corresponding to the checkbox's value, in the custom node's JS file to either 1 or 0. My issue is, I cannot figure out how to transmit the state of the checkboxes from the UI.
I've tried the method outlined here: Node properties : Node-RED, but it doesn't seem to be updating the properties. Ideally, I would pass a JSON object as a config property, containing information on whether each checkbox is toggled on/off. I would appreciate any pointers on how to go about this.
Alternatively,
use oneditsave callback to read the checkboxes and store them in this.checkboxes array. NOTE: checkboxes would need to be defined in the defaults .