tabellion

Table manipulation made easy, add/remove rows and cells.

Usage no npm install needed!

<script type="module">
  import tabellion from 'https://cdn.skypack.dev/tabellion';
</script>

README

Tabellion

Tabellion is a lightweight script to manipulate tables, table rows and table cells.

Build Status devDependency Status

Installation

Via npm

Run in your console: npm install tabellion

Via bower

Run in your console: bower install tabellion

Manual installation

Download the latest release and attach tabellion's script to your page:

<script src="js/tabellion.js"></script>

Basic Usage

You can now instantiate a new MediumEditor object:

<script>var tbl = new Tabellion(<your_table_element);</script>

API

  • root
  • addRow([index], [target])
  • deleteRow(index)
  • addColumn([index], [target])
  • deleteColumn(index)
  • deleteTable()
  • zebrify([options])
  • highlight(index)

Developing

Install dev dependencies:

npm install

Run tests:

npm test

Update build:

npm run build

Profit :grin:

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Test your changes to the best of your ability.
  4. Update the documentation to reflect your changes if they add or changes current functionality.
  5. Commit your changes (git commit -am 'Add some feature')
  6. Push to the branch (git push origin my-new-feature)
  7. Create new Pull Request

License

MIT