DfConnectionLabel adds text, templates or Angular components to an edge. Labels can be persisted on one connection or supplied as defaults while users create new connections.
Connection labelFinal persisted value for one edge.
Output labelDefault inherited by edges created from that output.
Node labelShared default applied to all outputs in a node.
Define Labels
Label content is Polymorpheus content and optional context is passed through unchanged. Use a typed application object when a template or component exposes controls.
Connectionconnection.label is the stored value rendered for that edge.
Output connector[connectionLabel] is copied during interactive creation.
Node datadata.connectionLabel supplies a fallback to every output.
An output connector label overrides the node-level default. Call setConnectionLabel() on a DfOutputComponent reference when the next created edge needs an imperative override.
Interactive Example
This graph demonstrates text labels and a component label with a copy action. Inspect the source tabs for the model, label component and node template.