Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Node filter support for typedInput's builtin node#5154

Merged
knolleary merged 2 commits intonode-red:devnode-red/node-red:devfrom
GogoVega:typedInput-node-filterGogoVega/node-red:typedInput-node-filterCopy head branch name to clipboard
Jun 6, 2025
Merged

Node filter support for typedInput's builtin node#5154
knolleary merged 2 commits intonode-red:devnode-red/node-red:devfrom
GogoVega:typedInput-node-filterGogoVega/node-red:typedInput-node-filterCopy head branch name to clipboard

Conversation

@GogoVega
Copy link
Contributor

@GogoVega GogoVega commented Jun 4, 2025

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Proposed changes

Closes #5153.

Allows filtering selectable nodes with typedInput's node mode.

Prototypes are:

filter: string;            // node type
filter: string[];          // list of node type
filter: (node) => boolean; // function that returns a boolean

Example:

$(elm).typedInput({
    default: "node",
    types: ["node"],
    node: {
       filter: "debug"
       //filter: ["debug", "inject"]
       //filter: (node) => node.type === "debug"
    }
})

Checklist

  • I have read the contribution guidelines
  • For non-bugfix PRs, I have discussed this change on the forum/slack team.
  • I have run npm run test to verify the unit tests pass
  • I have added suitable unit tests to cover the new/changed functionality

@AllanOricil
Copy link
Contributor

LGTM

@knolleary knolleary merged commit edf9fe1 into node-red:dev Jun 6, 2025
4 checks passed
@GogoVega GogoVega deleted the typedInput-node-filter branch June 6, 2025 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.