F
Filament6mo ago
Veur

Customizing Notification position & styling on the fly

Is there a way to change the position and styling of a Notification when sending it, instead of globally in a Service Provider? I have different types of notifications I'd like to display: 1. Notification about a form that is saved (top center) 2. Event Notifications, "You received a new message", for example (top right) Is this possible in v3?
4 Replies
toeknee
toeknee6mo ago
you could try extraAttributes and change the class/css there? See if it's high enough in the classing to work or not
Veur
VeurOP6mo ago
Thanks @toeknee I tried that, but ->extraAttributes() is not available on the Notification class
toeknee
toeknee6mo ago
Ahh then it looks like not, dive into how the package works, maybe make a PR adding support for alignment?
Veur
VeurOP6mo ago
I might look into that, thanks
Want results from more Discord servers?
Add your server