Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to add plugin? #3

Closed
timeshift92 opened this issue Apr 5, 2021 · 2 comments
Closed

how to add plugin? #3

timeshift92 opened this issue Apr 5, 2021 · 2 comments

Comments

@timeshift92
Copy link

No description provided.

@iamyuu
Copy link
Owner

iamyuu commented Apr 6, 2021

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 iamyuu closed this as completed Apr 6, 2021
@iamyuu
Copy link
Owner

iamyuu commented Apr 6, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants