How to enumerate nodes in config

I am trying to enumerate config nodes of a certain type within node configuration HTML.

The following call works for UI nodes:

RED.nodes.filterNodes({type:'my-type'})

But it doesn't work for any config nodes (the return is empty).

What is the proper way to enumerate config nodes?

Thanks

You can use RED.nodes.eachConfig to iterate through the config nodes:

RED.nodes.eachConfig(configNode => {

})
1 Like

THanks! This works.

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