Skip to content

Commit

Permalink
Show Custom Blocks in Toolbox
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Aug 10, 2022
1 parent 5bec238 commit 996f37c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions demos/code/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,17 @@ <h1><a href="https://developers.google.com/blockly/">Blockly</a>&rlm; &gt;
<textarea id="content_json" class="content" wrap="off"></textarea>

<xml xmlns="https://developers.google.com/blockly/xml" id="toolbox" style="display: none">

<!-- Begin: Sensors Category -->
<category name="Sensors" colour="160">
<block type="bme280"></block>
<block type="every"></block>
<block type="compose_msg"></block>
<block type="field"></block>
<block type="transmit_msg"></block>
</category>
<!-- End: Sensors Category -->

<category name="%{BKY_CATLOGIC}" colour="%{BKY_LOGIC_HUE}">
<block type="controls_if"></block>
<block type="logic_compare"></block>
Expand Down

0 comments on commit 996f37c

Please sign in to comment.