Skip to content

Latest commit

 

History

History
 
 

block-test

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

@blockly/block-test Built on Blockly

A set of Blockly test blocks.

Installation

Yarn

yarn add @blockly/block-test

npm

npm install @blockly/block-test --save

Usage

Import

import * as Blockly from 'blockly';
import {toolboxTestBlocks, toolboxTestBlocksInit} from '@blockly/block-test';

// Configure the Blockly workspace to use the test block's toolbox.
const workspace = Blockly.inject('blocklyDiv', {
  ...options
  toolbox: toolboxTestBlocks,
});

// Initalize the test block's toolbox.
toolboxTestBlocksInit(workspace);

License

Apache 2.0