Open In App

Angular PrimeNG Messages Complete Reference

Last Updated : 27 Sep, 2023
Comments
Improve
Suggest changes
Like Article
Like
Report

Angular PrimeNG Messages Component provides various types of facilities, such as Message Service and severity, Static and dynamic Content, different form layouts, etc., in order to render the status of the Message to the user.

Messages Component

The Messages Component can be used to display a message with particular severity, summary, and detail as the properties.

Components

Descriptions

Messages SeveritiesThis component is used to display a message with particular severity.
Messages DynamicIt is an array of messages to display. It is of array data type, the default value is null.
Message ServiceThe Message Service can be used by importing the class & defining  it as a provider in the component tree
Messages Static ContentTo display the static content, the user can make use of the message template.
Messages Inline MessageThe Inline Message is generally displayed inline, mostly within the form.
Messages Message ArrayThe Messages component is used to display a message with particular severity.
Messages ClosableUsing the [closable]=”false” attribute, we can make the closable icon inactive.
Message ComponentThe Message Component is used to display a message with particular severity.
Messages Animation ConfigurationThe Messages Animation Configuration allows configuring the default animation.
Properties of Message ComponentAngular PrimeNG Properties of Messages Component are value, closable, style, styleClass, etc.
Messages TemplatesThe templates are used to put some content on some pre-structured containers. Message templates are discussed below
Styling for Messages ComponentThe Styling for the Messages component is used to change the default styles of the component and suit the design of the website.

Toast Component

The Toast Component can be utilized to render the information or any message in an overlay.

Components

Descriptions

Toast SeveritiesThe Toast component is a tool used to overlay feedback messages with particular severity.
Toast PositionsThe Toast component is a tool used to overlay feedback messages with particular severity.
Toast MultipleIt is used to give text value to the toast button component. It is a string type.
Toast ClearIt is used to give text value to the toast button component. It is a string type and the default value is null.
Toast TemplateThe Toast component is a tool used to overlay feedback messages with particular severity.