Example Usage
PollingTable.php
public function configure(): void
{
$this->setPrimaryKey('id')
->setRefreshTime(10000); // Refresh every 10 seconds (milliseconds)
// Other refresh modes (set only ONE of these):
// ->setRefreshTime(30000) // 30 seconds
// ->setRefreshTime(60000) // 1 minute
// ->setRefreshVisible() // only while the tab is visible
// ->setRefreshKeepAlive() // keep the session alive
// ->setRefreshMethod('myMethod') // call a component method
}
Note: in v3 the refresh interval is set with
setRefreshTime() in milliseconds.
Human-readable intervals such as '10s' or '1m' are not available, and only one of
setRefreshTime(), setRefreshVisible(), setRefreshKeepAlive() or
setRefreshMethod() can be active at a time — they all write the same underlying setting.
Auto-refreshing every 10 seconds
10s
10 seconds
30s
30 seconds
1m
1 minute
5m
5 minutes
Live Demo
Watch the "Last Updated" column change automatically
You are not connected to the internet.
| Last Updated | ||||
|---|---|---|---|---|
| 1 | Miss Eve Will | [email protected] | 21:30:37 | ✓ |
| 2 | Mr. Cornelius Hansen DDS | [email protected] | 21:30:37 | ✗ |
| 3 | Dr. Albertha Abbott | [email protected] | 21:30:37 | ✗ |
| 4 | Citlalli Berge PhD | [email protected] | 21:30:37 | ✗ |
| 5 | Mr. Austen Harber | [email protected] | 21:30:37 | ✓ |
| 6 | Raegan Pfannerstill PhD | [email protected] | 21:30:37 | ✓ |
| 7 | Dan Ebert | [email protected] | 21:30:37 | ✓ |
| 8 | Mertie Kohler | [email protected] | 21:30:37 | ✓ |
| 9 | Prof. Cornelius Herzog DDS | [email protected] | 21:30:37 | ✗ |
| 10 | Barbara Metz | [email protected] | 21:30:37 | ✗ |
Showing 1 to 10 of results