Skip to content

Commit e7f65bd

Browse files
committed
Event docs
1 parent 77d00df commit e7f65bd

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ All notable changes to `laravel-livewire-tables` will be documented in this file
77
### Added
88

99
- Added space to include custom markup at the end of the component.
10+
- Added events documentation
1011

1112
## [2.1.0] - 2022-04-12
1213

docs/datatable/events.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: Events
3+
weight: 2
4+
---
5+
6+
These are the available events on the datatable component that you can fire from your application:
7+
8+
### refreshDatatable
9+
10+
```php
11+
$this->emit('refreshDatatable');
12+
```
13+
14+
Calls `$refresh` on the component. Good for updating from external sources or as an alternative to polling.

0 commit comments

Comments
 (0)