clearMessages(config)
Deletes validation messages from property and deletes HTTP messages from context.
Returns
Not applicable.
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 deletes HTTP messages from context.
clearMessages({
type: 'error',
category: 'HTTP'
context: 'app/primary_2'
});
In this example, the API deletes validation messages from property of a context.
clearMessages({
type: 'error',
property: '.firstName',
context: 'app/primary_2'
});
Previous topic addMessages(config) Next topic getMessages(config)