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

Table reload method #47

Open
brvhprince opened this issue Mar 23, 2022 · 2 comments
Open

Table reload method #47

brvhprince opened this issue Mar 23, 2022 · 2 comments

Comments

@brvhprince
Copy link

This is more of a feature request than an issue. A method you can call e.g datatable.reload() to re-fetch the data from the provided URL on the AjaxOptions . The refresh property is available but it might not be useful and relevant in some use cases.

Example Use Case

A user table with options to toggle status on/off via an ajax call. After execution, I would like to fetch and update the existing data without having to reload the page.

@Holt59
Copy link
Owner

Holt59 commented Mar 23, 2022

I am not working actively on this project right now so it's unlikely this feature will ever be implemented but you can probably mimic it by simply deleting the old datatable and recreating with the exact same parameters.

@brvhprince
Copy link
Author

Thanks for the feedback. I've added a custom method and it works fine. 👍

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