Skip to content

Instantly share code, notes, and snippets.

@joeartsea
Last active December 8, 2015 12:54
Show Gist options
  • Select an option

  • Save joeartsea/26cfb1caf321ebd723a5 to your computer and use it in GitHub Desktop.

Select an option

Save joeartsea/26cfb1caf321ebd723a5 to your computer and use it in GitHub Desktop.
Node-REDのNode作成2歩目 ref: http://qiita.com/joeartsea/items/874b56a3d536894bfbd0
<script type="text/javascript">
RED.nodes.registerType('Nodeのタイプ', {
// Nodeの定義
});
</script>
<script type="text/x-red" data-template-name="node-type">
<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">
</div>
</script>
<script type="text/x-red" data-help-name="node-type">
<p>Some useful help text about the node.</p>
<p>Outputs an object called <b>msg</b> containing <b>msg.topic</b> and
<b>msg.payload</b>. msg.payload is a String.</p>
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment