first commit
This commit is contained in:
60
sample/command.html
Normal file
60
sample/command.html
Normal file
@@ -0,0 +1,60 @@
|
||||
<script type="text/javascript">
|
||||
RED.nodes.registerType('command', {
|
||||
category: 'telegram-account',
|
||||
color: '#229ED9',
|
||||
icon: 'tg.png',
|
||||
align:"right",
|
||||
defaults: {
|
||||
name: { value: '' },
|
||||
config: { type: 'config', required: false },
|
||||
command: { value: "", required:true },
|
||||
regex:{ value:false }
|
||||
},
|
||||
inputs: 1,
|
||||
outputs: 1,
|
||||
label: function () {
|
||||
return this.name || 'Command';
|
||||
},
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="text/html" data-template-name="command">
|
||||
<div class="form-row">
|
||||
<label for="node-input-name">
|
||||
<i class="fa fa-tag"></i> Name
|
||||
</label>
|
||||
<input
|
||||
type="text"
|
||||
id="node-input-name"
|
||||
placeholder="Name"
|
||||
style="width: 60%"
|
||||
/>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-input-config">
|
||||
<i class="fa fa-tag"></i> Config
|
||||
</label>
|
||||
<input
|
||||
type="text"
|
||||
id="node-input-config"
|
||||
placeholder="Config"
|
||||
style="width: 60%"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
<label for="node-input-command">
|
||||
<i class="fa fa-tag"></i> Message
|
||||
</label>
|
||||
<input type="text" id="node-input-command" placeholder="Message">
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
<label for="regex">
|
||||
<i class="fa fa-cog"></i><span>Regular expression</span>
|
||||
</label>
|
||||
<input type="checkbox" style="display: inline; width: 22px;vertical-align: top;" id="node-input-regex">
|
||||
</div>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user