Files
node-red-contrib-teamspeak/src/nodes/ts3-config/ui/index.ts
2021-04-25 23:54:43 +02:00

22 lines
565 B
TypeScript

import { EditorRED } from "node-red";
import { Ts3ConfigCreds, Ts3ConfigEditorNodeProperties } from "../types";
declare const RED: EditorRED;
RED.nodes.registerType<Ts3ConfigEditorNodeProperties,Ts3ConfigCreds>('ts3-config',{
category: 'config',
color: '#a6bbcf',
defaults: {
name: {value:""},
host: { value: ""},
nickname: {value: "ServerQuery"}
},
credentials: {
username: {type: "text"},
password: {type: "password"}
},
label: function() {
return this.name || "TS3 Config";
}
});