Table tool
Table Block for the CodeX Editor.
Installation
Install via NPM or Yarn
Get the package
npm i --save-dev codex.editor.table
or
yarn add codex.editor.table --dev
Include module in your application
const Table = ;
Upload to your project's source dir
- Download folder
dist
from repository - Add
dist/bundle.js
file to your page.
Usage
Add a new Tool to the tools
property of the CodeX Editor initial config.
var editor = ;
Or init Table Tool with additional settings
var editor = ;
Config Params
Field | Type | Description |
---|---|---|
rows | number |
initial number of rows. by default 2 |
cols | number |
initial number of columns. by default 2 |
Output data
This Tool returns data
with following format
Field | Type | Description |
---|---|---|
content | string[][] |
two-dimensional array with table contents |