-
-
Notifications
You must be signed in to change notification settings - Fork 300
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
Feature Request: destroy api #84
Comments
Can you explain your need a little bit? |
when datasource change, I want to destroy the jkanban then recreate it. |
Try something like, check if the element is already created, if it is, you don't recreate it, just remove the boards and put it back. kanbanElement.removeBoard(...) |
I agree, removing and recreate entire kanban is a bad thing. You can remove boards or items to achieve what you want. |
so the "recreate" scene can be resolved by removeBoard and addBoards. |
If I'm right, you need that because jKanban does not "cleans" DOM elements when you "recreate" page in React, so I'm thinking you need to destroy jKanban instance in order to load some other content into a main div. That's a "workaround" to make jKanban work nicely with reactive languages. If that's the case, I think it is good to have a destroy api. |
yes, I want to clean all resource created by jKanban. |
Anyone found any solution to destroy it so we can make it sort of "reactive" ? |
@tiagosimoesdev I'm a little busy these days. I started a wrapper in Vue.js but as I have no time, I stopped a little bit the development. |
You can remove the container div a create again.
|
That's how I implemented a board of mine. Not "destroying" the entire board, but managing some "automatic" moving features. Like some user moved item 34 and all other users see the item were moved. |
IF we use this code we have a flashing effect on the reloaded div. It would be better to have a destroy API or reinit API without reloading this div. Now it is the same as doing a location.reload() function... It can be used for editing or deleting boards or items and dataset is coming from database on ajax success. |
No description provided.
The text was updated successfully, but these errors were encountered: