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

Add icons for typedInput

This commit is contained in:
Kazuhito Yokoi 2019-10-31 16:03:27 +09:00
parent d2755a8049
commit 7c21bf4555

View File

@ -237,13 +237,13 @@
function createTypeValueField(){ function createTypeValueField(){
return $('<input/>',{class:"node-input-rule-type-value",type:"text",style:"margin-left: 5px;"}).appendTo(row).typedInput({default:'string',types:[ return $('<input/>',{class:"node-input-rule-type-value",type:"text",style:"margin-left: 5px;"}).appendTo(row).typedInput({default:'string',types:[
{value:"string",label:RED._("node-red:switch.label.string"),hasValue:false}, {value:"string",label:RED._("node-red:switch.label.string"),hasValue:false,icon:"red/images/typedInput/az.png"},
{value:"number",label:RED._("node-red:switch.label.number"),hasValue:false}, {value:"number",label:RED._("node-red:switch.label.number"),hasValue:false,icon:"red/images/typedInput/09.png"},
{value:"boolean",label:RED._("node-red:switch.label.boolean"),hasValue:false}, {value:"boolean",label:RED._("node-red:switch.label.boolean"),hasValue:false,icon:"red/images/typedInput/bool.png"},
{value:"array",label:RED._("node-red:switch.label.array"),hasValue:false}, {value:"array",label:RED._("node-red:switch.label.array"),hasValue:false,icon:"red/images/typedInput/json.png"},
{value:"buffer",label:RED._("node-red:switch.label.buffer"),hasValue:false}, {value:"buffer",label:RED._("node-red:switch.label.buffer"),hasValue:false,icon:"red/images/typedInput/bin.png"},
{value:"object",label:RED._("node-red:switch.label.object"),hasValue:false}, {value:"object",label:RED._("node-red:switch.label.object"),hasValue:false,icon:"red/images/typedInput/json.png"},
{value:"json",label:RED._("node-red:switch.label.jsonString"),hasValue:false}, {value:"json",label:RED._("node-red:switch.label.jsonString"),hasValue:false,icon:"red/images/typedInput/json.png"},
{value:"undefined",label:RED._("node-red:switch.label.undefined"),hasValue:false}, {value:"undefined",label:RED._("node-red:switch.label.undefined"),hasValue:false},
{value:"null",label:RED._("node-red:switch.label.null"),hasValue:false} {value:"null",label:RED._("node-red:switch.label.null"),hasValue:false}
]}); ]});