jantinnerezo / livewire-alert

SweetAlert2 wrapper for Livewire
https://livewire-alert.jantinnerezo.com
MIT License
709 stars 73 forks source link

Bug fixes and extra alert parameters #56

Closed jantinnerezo closed 2 years ago

jantinnerezo commented 2 years ago

Bug fixes

Added

You can now pass extra parameters to any alert events with the data key.

$this->alert('info', 'Extra paramters', [
    'onConfirmed' => 'confirmed',
    'showConfirmButton' => true,
    'data' => []
]);
public function confirmed($params)
{
    // Retrieve data
    $params['data'];
}