showing results for - "livewire progress indicators javascript"
Paddy
24 Jan 2019
1window.addEventListener('livewire-upload-start', event => {
2  console.log('upload started');
3});
4window.addEventListener('livewire-upload-finished', event => {
5  console.log('upload finished');
6});
7window.addEventListener('livewire-upload-error', event => {
8  console.log('upload error');
9});
10window.addEventListener('livewire-upload-progress', event => {
11  console.log(`${event.detail.progress}%`);
12});