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 refresh table #68

Open
kirer opened this issue Sep 5, 2022 · 1 comment
Open

How refresh table #68

kirer opened this issue Sep 5, 2022 · 1 comment

Comments

@kirer
Copy link

kirer commented Sep 5, 2022

How refresh table

@jwag59
Copy link

jwag59 commented Sep 5, 2022

When you create the table using DataTable you specify the on_data= parameter to the 'data' option.
This specifies a function that will get called when the user presses the any of the pagination options for a table.
If you want regular updates you will need to set a timer on the page and refresh/update the table widget each time the timer expires.

You can also see an example in the adminui/python/example_table.py in the sources or you can check the online docs for an explanation:
https://python-adminui.readthedocs.io/en/latest/table.html

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