bigeyex / python-adminui

Write professional web interfaces with Python.
MIT License
123 stars 29 forks source link

How refresh table #68

Open kirer opened 2 years ago

kirer commented 2 years ago

How refresh table

jwag59 commented 2 years ago

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