From 57e5246022378a8afbfd0e5d26e8b97070b22951 Mon Sep 17 00:00:00 2001 From: Eric Tuvesson Date: Thu, 4 Jul 2024 15:54:20 +0200 Subject: [PATCH] feat(runtime): Add default label to String Format node (#49) Update the String Format node default label to show the format, like how the other nodes work. --- packages/noodl-runtime/src/nodes/std-library/stringformat.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/noodl-runtime/src/nodes/std-library/stringformat.js b/packages/noodl-runtime/src/nodes/std-library/stringformat.js index 5fbe459..dd87352 100644 --- a/packages/noodl-runtime/src/nodes/std-library/stringformat.js +++ b/packages/noodl-runtime/src/nodes/std-library/stringformat.js @@ -2,6 +2,8 @@ const StringFormatDefinition = { name: 'String Format', docs: 'https://docs.noodl.net/nodes/string-manipulation/string-format', category: 'String Manipulation', + usePortAsLabel: 'format', + portLabelTruncationMode: 'length', initialize() { const internal = this._internal; internal.format = '';