FilamentF
Filament16mo ago
Jefry

is it possible to create a notification in alpinejs without it going to the server?

<div class="background-light900_dark200 relative max-w-4xl overflow-hidden rounded-xl border border-gray-200 px-5 py-10 shadow-sm dark:border-none" x-data="{ vote(type) { if (!$wire.userId) { return new FilamentNotification() .title('Please sign in') .body('You need to sign in to vote') .icon('heroicon-o-exclamation-circle') .iconColor('warning') .send() } // vote logic here } }">
Was this page helpful?