Centre de notifications

Panneau de notifications avec icône cloche, badge de comptage, états lu/non lu et fonctionnalité de marquage comme lu. Inclut la fermeture par clic extérieur, le support de la touche Échap et la diffusion d'événements.

Aperçu et code

Options

Nom Type Par défaut Description
notifications * Array requis Array of notification hashes with :id, :title, :message, :time, :read, :avatar, :href, :type
unread_count Integer Badge count (auto-calculated if omitted)
empty_text String "No notifications" Text shown when no notifications
mark_all_label String "Mark all as read" Label for mark all as read button

Journal des modifications v1.0.0

- Initial release with bell trigger, notification panel, read/unread states
- Mark individual and mark all as read
- Click-outside and Escape to close

Obtenir l'accès complet

Débloquez le code source de ce composant et de tous les autres. Paiement unique pour un accès à vie.

Obtenir l'accès maintenant