index.js in TableKit – WordPress Table Builder for Data Tables, WooCommerce Product Tables & Post Tables 1.0.1, at src/table-builder/index.js
| 1 | import { registerBlockType } from '@wordpress/blocks'; |
| 2 | import { table } from '@wordpress/icons'; |
| 3 | import './style.scss'; |
| 4 | |
| 5 | /** |
| 6 | * Internal dependencies |
| 7 | */ |
| 8 | import Edit from './edit'; |
| 9 | import save from './save'; |
| 10 | import metadata from './block.json'; |
| 11 | |
| 12 | registerBlockType( metadata.name, { |
| 13 | /** |
| 14 | * @see ./edit.js |
| 15 | */ |
| 16 | edit: Edit, |
| 17 | |
| 18 | /** |
| 19 | * Block icon |
| 20 | */ |
| 21 | icon: table, |
| 22 | |
| 23 | /** |
| 24 | * @see ./save.js |
| 25 | */ |
| 26 | save, |
| 27 | } ); |
| 28 |