Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

livewire progress indicators javascript

window.addEventListener('livewire-upload-start', event => {
  console.log('upload started');
});
window.addEventListener('livewire-upload-finished', event => {
  console.log('upload finished');
});
window.addEventListener('livewire-upload-error', event => {
  console.log('upload error');
});
window.addEventListener('livewire-upload-progress', event => {
  console.log(`${event.detail.progress}%`);
});
Source by laravel-livewire.com #
 
PREVIOUS NEXT
Tagged: #livewire #progress #indicators #javascript
ADD COMMENT
Topic
Name
3+6 =