Last active
December 8, 2015 12:54
-
-
Save joeartsea/26cfb1caf321ebd723a5 to your computer and use it in GitHub Desktop.
Node-REDのNode作成2歩目 ref: http://qiita.com/joeartsea/items/874b56a3d536894bfbd0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript"> | |
| RED.nodes.registerType('Nodeのタイプ', { | |
| // Nodeの定義 | |
| }); | |
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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