37 lines
1.2 KiB
HTML
37 lines
1.2 KiB
HTML
<script type="text/javascript">
|
|
RED.nodes.registerType('whatsappLink',{
|
|
category: 'config',
|
|
defaults: {
|
|
cName : {value:"whatsapp-web",required:true},
|
|
name : {value : "Web"},
|
|
clientType: {}
|
|
},
|
|
label: function() {
|
|
return this.clientType;
|
|
},
|
|
oneditprepare: function(){
|
|
$("#node-config-input-clientType").typedInput({
|
|
types: [
|
|
{
|
|
value: "Select Client Type",
|
|
options: [
|
|
{ value: "waWebClient", label: "Whatsapp Web"},
|
|
{ value: "waSocketClient", label: "Whatsapp Lite"},
|
|
]
|
|
}
|
|
]
|
|
})
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<script type="text/html" data-template-name="whatsappLink">
|
|
<div>
|
|
<label for="node-config-input-client" ><i class="fa fa-cog"></i> Select type of Whatsapp Client : </label>
|
|
<input type="text" id="node-config-input-clientType">
|
|
</div>
|
|
<br>
|
|
<div class="form-tips">
|
|
<p> All done here just <b>Select the type of Whatsapp Client</b> and proceed.</p>
|
|
</div>
|
|
</script> |