Custom Notification/Message

Posted by jts-law on 22-Sep-2017 11:53

Hello,

In KUIB 2, how do I generate a custom notification message using the same format as grid errors?  I have a custom button that will make a separate ajax call to perform a function and I want to be able to display either a successful or error message to the user when it is done.

Louis

Posted by egarcia on 22-Sep-2017 13:24

Hello Louis,

You can use the following code to show notification messages:

$scope.$emit('notification', {
    type: 'error',
    message: "Error Message"
});				
				

I hope this helps,

Edsel

All Replies

Posted by egarcia on 22-Sep-2017 13:24

Hello Louis,

You can use the following code to show notification messages:

$scope.$emit('notification', {
    type: 'error',
    message: "Error Message"
});				
				

I hope this helps,

Edsel

This thread is closed