python-adminui icon indicating copy to clipboard operation
python-adminui copied to clipboard

How refresh table

Open kirer opened this issue 2 years ago • 1 comments

How refresh table

kirer avatar Sep 05 '22 15:09 kirer

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

jwag59 avatar Sep 05 '22 15:09 jwag59