-
Notifications
You must be signed in to change notification settings - Fork 43
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 refresh? #39
Comments
Please help me how to destroy and recreate this Dual List...? |
This is how I am currently destroying and re-create the listbox. When I instantiate a new dualListbox, I store the object into my current class. Then I call a promise that fetches new data.
|
|
This is how I approached it after close to 72 hours of suffering.
Next, within javascript I defined a html string with a new select element and then using the div id above I retrived the div and replaced the inner html with the newly created html string as shown below
Note:
|
I'm using this with React, after a user performs an action I get an updated list of options from DB.
I would like to pass them to an existing dual-list box, how can I go about doing that? is there is a refresh function? if not how can I destroy the element and re-create it with new options?
The text was updated successfully, but these errors were encountered: