1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Use built-in type in typedInput

This commit is contained in:
Kazuhito Yokoi 2022-05-26 22:50:52 +09:00
parent f424f07e54
commit 121372802f

View File

@ -237,8 +237,7 @@
}).text(label).appendTo(encSel); }).text(label).appendTo(encSel);
$("#node-input-filename").typedInput({ $("#node-input-filename").typedInput({
default: "msg", default: "msg",
types:[{ value: "str", label: RED._("common.type.string"), types: ["str", "msg", "jsonata", "env"],
icon: "red/images/typedInput/az.svg"}, "msg", "jsonata", "env"],
typeField: $("#node-input-filenameType") typeField: $("#node-input-filenameType")
}); });
if(typeof node.filenameType == 'undefined') { if(typeof node.filenameType == 'undefined') {
@ -343,8 +342,7 @@
}).text(label).appendTo(encSel); }).text(label).appendTo(encSel);
$("#node-input-filename").typedInput({ $("#node-input-filename").typedInput({
default: "msg", default: "msg",
types:[{ value: "str", label: RED._("common.type.string"), types: ["str", "msg", "jsonata", "env"],
icon:"red/images/typedInput/az.svg"}, "msg", "jsonata", "env"],
typeField: $("#node-input-filenameType") typeField: $("#node-input-filenameType")
}); });
if(typeof node.filenameType == 'undefined') { if(typeof node.filenameType == 'undefined') {