node-red-contrib-line-messaging-api
Version:
Node-RED nodes for LINE Messaging API integration. Build LINE Bots easily with visual programming.
49 lines (43 loc) • 1.47 kB
HTML
<script>
RED.nodes.registerType('getBotInfo', {
category: 'LINE',
color: '#01B301',
defaults: {
name: {value: ''},
lineConfig: {value: "", type:"lineConfig", required:true},
},
inputs: 1,
outputs: 1,
icon: "font-awesome/fa-robot",
align: 'right',
label: function () {
return this.name || 'Get Bot Info';
},
paletteLabel: 'Get BotInfo',
});
</script>
<script type="text/html" data-template-name="getBotInfo">
<!-- 名前 -->
<div class="form-row">
<label for="node-input-name">
<i class="fa fa-tag"></i>
<span data-i18n="getBotInfo.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="getBotInfo.label.lineConfig">LINE Bot設定</span>
</label>
<input type="text" id="node-input-lineConfig">
</div>
<!-- Bot情報取得ボタン -->
<!-- <div class="form-row">
<button type="button" id="node-getbotinfo-fetch"><span data-i18n="getBotInfo.label.fetchBotInfo">Bot情報を取得</span></button>
</div> -->
</script>
<script type="text/html" data-help-name="getBotInfo">
<p>Gets the BOT information!</p>
</script>