KEMBAR78
Support config selection in a subflow env var by Steve-Mcl · Pull Request #4587 · node-red/node-red · GitHub
Skip to content

Conversation

Steve-Mcl
Copy link
Contributor

@Steve-Mcl Steve-Mcl commented Mar 1, 2024

Types of changes

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

Proposed changes

Implement part of node-red/designs#77

  • Adds "conf-types" to typedInput - permitting the Env Var UI editor to select a "config type"
  • Adds getNodeDefinitions which is exposed via RED.nodes.registry.getNodeDefinitions
    • This is to support listing config types in a typedInput
  • Exposes prepareConfigNodeSelect in RED.editor.prepareConfigNodeSelect to permit subflow env var to show config selection
  • Modifies the ediatbleList to support "sortable, but not movable" items by adding a class red-ui-editableList-item-constrained to the li of the container
    • This is necessary for when a plugin (like dashboard) wants to show UI elements within a subflow in their editable list but dont want the user to be able to move items between groups

Demonstration

Configs.in.subflows.-.dashboard.demo.mp4

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants