node-red-contrib-line-messaging-api
Version:
Node-RED nodes for LINE Messaging API integration. Build LINE Bots easily with visual programming.
48 lines (41 loc) • 1.38 kB
HTML
<script>
RED.nodes.registerType('markAsRead', {
category: 'LINE',
color: '#01B301',
defaults: {
name: {value: ''},
lineConfig: {value: "", type:"lineConfig", required:true},
},
inputs: 1,
outputs: 1,
inputLabels: ["LINE Messages Object"],
outputLabels: ["LINE Messages Object or Error Message"],
icon: "font-awesome/fa-check-square",
align: 'right',
label: function () {
return this.name || 'Mark As Read';
},
paletteLabel: 'MarkAsRead',
});
</script>
<script type="text/html" data-template-name="markAsRead">
<!-- 名前 -->
<div class="form-row">
<label for="node-input-name">
<i class="fa fa-tag"></i>
<span data-i18n="markAsRead.label.name">名前</span>
</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<!-- LINE Config -->
<div class="form-row">
<label for="node-input-lineConfig">
<i class="fa fa-tag"></i>
<span data-i18n="markAsRead.label.lineConfig">LINE Bot設定</span>
</label>
<input type="text" id="node-input-lineConfig">
</div>
</script>
<script type="text/html" data-help-name="markAsRead">
<p>Gets the user profile information.</p>
</script>