update rest of parsers to allow property to be selected

This commit is contained in:
Dave Conway-Jones
2018-01-31 11:18:30 +00:00
parent f664fa0e31
commit b2de928860
10 changed files with 158 additions and 139 deletions

View File

@@ -1,5 +1,9 @@
<script type="text/x-red" data-template-name="what3words">
<div class="form-row">
<label for="node-input-property"><i class="fa fa-ellipsis-h"></i> <span data-i18n="node-red:common.label.property"></span></label>
<input type="text" id="node-input-property" style="width:70%;"/>
</div>
<div class="form-row">
<label for="node-input-apikey"><i class="fa fa-key"></i> API Key</label>
<input type="password" id="node-input-apikey">
@@ -41,9 +45,10 @@
RED.nodes.registerType('what3words',{
category: 'location',
defaults: {
name: {value:""},
property: {value:"payload",required:true},
title: {value:""},
lang: {value:"en"},
name: {value:""}
lang: {value:"en"}
},
credentials: {
apikey: {type: "password"}