v-blockly
Blockly wrapped in a vue component
1,025
13
| Install | |
|---|---|
npm install v-blockly@beta |
|
| Latest Version: | 0.2.26 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | Jan 4, 2023 |
| Links: | GitHub · npm |
Maintainer: fedor.baart
v-blockly
Blockly wrapped in a vue component
Usage:
To download this package, install it through npm:
npm install --save v-blockly
// Import the component, and optionally Blockly itself
// You can also import goog if you needed
// As a side effect the Blockly object is available on the window object
import VBlockly, { Blockly } from 'v-blockly'
Vue.component('v-blockly', VBlockly)
And then in your vue template.
<v-blockly workspace="workspace.xml" toolbox="toolbox.xml"></v-blockly>
That's it. The package already includes Blockly itself. It's not possible to keep blockly out of the package as a peer dependency because we are import blockly using a wrapped imported module.
Development
This package contains some examples in a storybook that you can run with:
npm run storybook
Example
You can see a minimal example in this codesandbox.
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.2.26 | ^2.6.10 | MIT | |
| 0.2.25 | ^2.6.10 | MIT | |
| 0.2.24 | ^2.6.10 | MIT | |
| 0.2.22 | ^2.6.10 | MIT | |
| 0.2.21 | ^2.6.10 | MIT | |
| 0.2.20 | ^2.6.10 | MIT | |
| 0.2.19 | ^2.6.10 | MIT | |
| 0.2.18 | ^2.6.10 | MIT | |
| 0.2.17 | ^2.6.10 | MIT | |
| 0.2.16 | ^2.6.10 | MIT | |
| 0.2.15 | ^2.6.10 | MIT | |
| 0.2.14 | ^2.6.10 | MIT | |
| 0.2.13 | ^2.6.10 | MIT | |
| 0.2.11 | ^2.6.10 | MIT | |
| 0.2.10 | ^2.6.10 | MIT | |
| 0.2.9 | ^2.6.10 | MIT | |
| 0.2.8 | ^2.6.10 | MIT | |
| 0.2.7 | ^2.6.10 | MIT | |
| 0.2.6 | ^2.6.10 | MIT | |
| 0.2.5 | ^2.6.10 | MIT | |
| 0.2.4 | ^2.6.10 | MIT | |
| 0.2.3 | ^2.6.10 | MIT | |
| 0.1.5 | ^2.6.10 | MIT | |
| 0.1.4 | ^2.6.10 | MIT | |
| 0.1.3 | ^2.6.10 | MIT | |
| 0.1.2 | ^2.6.10 | MIT | |
| 0.1.1 | ^2.6.10 | MIT | |
| 0.1.0 | ^2.6.10 | MIT | |
| 0.0.3 | MIT | ||
| 0.0.2 | MIT |
Showing the latest 30 of 31. See every release on npm