This component can be used to show latest messages in a custom made panel. These messages can be either system wide messages or messages that sent to the currently logged in user from other users.
It has some basic features including
Name | Description |
---|---|
id
|
Unique id of the message. |
icon
|
Icon name for the message. |
image
|
Image for the message. |
title
|
Title of the message. |
description
|
Description of the message. |
time
|
String representation of the time of the message (like ISO string). |
link
|
Link of the message. |
useRouter
|
Whether to use the Router to parse the link. |
read
|
Whether the message marked as read. |
The MessagesService
can be used to control the messages outside of the Messages component. This is particularly useful to control the
messages from other components for actions like creating, updating or deleting them.
Here's the list of all available methods from MessagesService
: