Hi all!
I'm using node-red-node-ui-list for a groceries list. I'm working on a solution to delete an entry as soon as it is checked, or alternatively delete the checked entries as soon as I click on a button.
Can anyone give my an advice how to check the state of the checkbox?
Does it even have a trigger or is it just a design function? Does anyone know? And if it has no trigger, does anyone have another idea how to delete an entry of the list after UI interaction?
This is what I've done:
I used the output node with a function node, which contains this:
if (msg.payload.isChecked == true){
/* do something */
}
return msg;
that "do something" is: define it as a "has to be deleted", specifically: put a "-" before the name. In my flow every entry, which starts with an "-" will be deleted if available. Than I linked the node to my back to the beginning of my workflow, and: voilá! It works.