SweetAlert2 wrapper for Livewire
MIT License
Bot releases are hidden (Show)
Full Changelog: https://github.com/jantinnerezo/livewire-alert/compare/v3.0.1...v3.0.2
Published by jantinnerezo about 1 year ago
Release Update: Livewire Alert Package v3.0.1
I recently released the Livewire Alert v3.0 to support the v3.0 version of Livewire. Upon review, many of you discovered an oversight in the release: the package dependencies were not correctly updated to reflect the compatibility with Livewire 3.0.
I apologize for any inconvenience this may have caused. To address this:
I've updated the dependencies to ensure compatibility with Livewire 3.0.
A new release with the corrected dependencies has been published. I recommend updating to this latest version to avoid any potential issues.
Published by jantinnerezo about 1 year ago
I'm excited to announce that this release introduces support for Livewire 3 stable release!
Installation
composer update jantinnerezo/livewire-alert
Full Changelog: https://github.com/jantinnerezo/livewire-alert/compare/2.2.7...v3.0@beta
Published by jantinnerezo over 1 year ago
Full Changelog: https://github.com/jantinnerezo/livewire-alert/compare/2.2.6...2.2.7
Published by jantinnerezo over 2 years ago
Fixed #78 callbacksKeyAllowed
is not defined by declaring the variable.
Published by jantinnerezo over 2 years ago
Thanks to @gpibarra for submitting the PRs. 👌🏽
Published by jantinnerezo over 2 years ago
Published by jantinnerezo almost 3 years ago
Published by jantinnerezo almost 3 years ago
onConfirmed
onDismissed
onDenied
and onProgress
events should now emit to component that called the alert so it won't emit to every component in your project.Emit events to only specific component. Instead of passing the listener directly to the event, pass an array with component
and listeners
keys.
'onConfirmed' => [
'component' => 'livewire-component',
'listener' => 'confirmed'
];
Published by jantinnerezo almost 3 years ago
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'];
}
Published by jantinnerezo almost 3 years ago
Credits to @falconeri
Published by jantinnerezo almost 3 years ago
LivewireAlert
traitLivewire Macroable is no longer used for directly calling alert
due to it being automatically registered on Livewire components that are not using alert methods.
Instead, you can import the Jantinnerezo\LivewireAlert\LivewireAlert
trait and use it in your Livewire components that are utilizing alerts.
Published by jantinnerezo almost 3 years ago
Credits to @yoeunes 💪🏼
Published by jantinnerezo about 3 years ago
Published by jantinnerezo over 3 years ago
Published by jantinnerezo over 3 years ago
✅ Fixed flash null config issue #28
Published by jantinnerezo almost 4 years ago
✅ Fixed unable to install livewire alert in laravel 8.20.1
🎉 Thanks to @moneya for submitting the issue.
Published by jantinnerezo almost 4 years ago
⚡️ Optimize blade component script code to utilize config
➕ Added more default config to livewire-alert.php
Published by jantinnerezo almost 4 years ago
Run this command to your terminal.
php artisan vendor:publish --provider="Jantinnerezo\LivewireAlert\LivewireAlertServiceProvider" --tag="config"
Huge thanks to @hantrick for submitting a PR for the config support.
Published by jantinnerezo almost 4 years ago
return [
'alert' => [
'position' => 'top-end',
'timer' => 3000,
'toast' => true,
'text' => null,
'showCancelButton' => true,
'showConfirmButton' => false,
],
'confirm' => [
'position' => 'center',
'toast' => false,
'timer' => null,
'showConfirmButton' => true,
'cancelButtonText' => 'No'
]
];