Skip to content

Commit 8f237b0

Browse files
authored
Add explanation of setRefreshMethod (rappasoft#1857) (rappasoft#1858)
1 parent aba2b63 commit 8f237b0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/misc/refreshing.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,16 @@ public function configure(): void
4242

4343
## setRefreshMethod
4444

45-
Fire a specific action when polling.
45+
Fire a specific action when polling. This is only necessary when you wish to call additional actions on each refresh. You must have a public function with the same name as the refresh method.
4646

4747
```php
4848
public function configure(): void
4949
{
50-
$this->setRefreshMethod('refresh');
50+
$this->setRefreshMethod('refreshTable');
51+
}
52+
53+
public function refreshTable()
54+
{
55+
// Custom Code Here
5156
}
5257
```

0 commit comments

Comments
 (0)