🚀 Socket Launch Week 🚀 Day 2: Introducing Repository Labels and Security Policies.Learn More
Socket
Sign inDemoInstall
Socket

@blockly/toolbox-search

Package Overview
Dependencies
Maintainers
0
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blockly/toolbox-search

A Blockly plugin that adds a toolbox category that allows searching for blocks.

2.0.12
latest
Source
npm
Version published
Maintainers
0
Created
Source

@blockly/toolbox-search Built on Blockly

A Blockly plugin that adds a toolbox category for searching blocks. The category displays a search field in the toolbox, and filters the available blocks as you type. The Blockly docs have more information about toolbox definitions and categories.

Installation

Yarn

yarn add @blockly/toolbox-search

npm

npm install @blockly/toolbox-search --save

Usage

import * as Blockly from 'blockly';
import '@blockly/toolbox-search';

const toolboxCategories = {
  'contents': [
    /* Other toolbox categories with blocks go here */
    {
      'kind': 'search',
      'name': 'Search',
      'contents': [],
    }
  ]
};

// Inject Blockly.
const workspace = Blockly.inject('blocklyDiv', {
  toolbox: toolboxCategories,
});

License

Apache 2.0

Keywords

blockly

FAQs

Package last updated on 04 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts