getMessages(config)
Retrieves validation messages from property and retrieves HTTP messages from context.
Returns
The messages as an object.
Parameters
Name | Type | Description | Required |
config | object | The object containing properties to process the information in the messages. | ✅ |
Usage example
In this example, the API retrieves HTTP messages from context.
getMessages({
type: 'error',
category: 'HTTP'
context: 'app/primary_2'
});
In this example, the API retrieves validation messages from property of a context.
getMessages({
type: 'error',
property: '.firstName',
context: 'app/primary_2'
});
Previous topic clearMessages(config) Next topic MessagesConfigObject