iamyuu / gridjs-svelte

A Svelte wrapper component for Grid.js
https://npm.im/gridjs-svelte
MIT License
57 stars 13 forks source link

how to add plugin? #3

Closed timeshift92 closed 3 years ago

iamyuu commented 3 years ago

I'm not sure this is the best approach or not, but it's work.

Follow this instruction:

  1. Write some plugin.
  2. Get Grid.js instance.
  3. Add the plugin to Grid.js instance using grid.plugin.add.
  4. the last step we need to re-render so the plugin can show up, we can use grid.forceRender.

Try it out in the browser

iamyuu commented 3 years ago

I'll add to the docs (at least on readme file) soon, thanks for opening issues.