Use this API to show a message pop-up. Normally, the message pop-up closes itself automatically. You can also close the message by clicking on it.
There are 4 types of messages which are listed below.
Z.Message.msg('Normal message');
Z.Message.success('Success message');
Z.Message.warning('Warning message');
Z.Message.error('Error message');
You can also call the full APIZ.Message.show()for precise control.
You can customize the message's duration: RUN
You can make the message not close itself: RUN
Z.Message.show({
type: 'msg', // ['msg', 'success', 'warning', 'error']
content: 'Close after 10s',
duration: 10000 // milliseconds
});
Z.Message.show({
type: 'success',
content: "Don't close myself",
autoClose: false
});