Message

Display global messages as feedback in response to user operations.

Display normal message
Normal pront
Normal message for information.
SnMessage.info({
    content: 'This is a normal message'
})
info
success
danger
warning
Other types of message
Messages of success, danger and warning types.
SnMessage.info({
    content: 'This is a info message'
});
SnMessage.success({
    content: 'This is a success message'
});
SnMessage.danger({
    content: 'This is a danger message'
});
SnMessage.warning({
    content: 'This is a warning message'
});
Customized display duration
Customize duration
Customize message display duration from default 6s to 10s
SnMessage.info({
    content: 'This is a prompt message for success, and it will disappear in 10 seconds',
    duration: 10000,
})

API

SnMessage

info, success, danger, warning

PropertyDescriptionTypeDefault
contentMessage text contentstring-
durationtime durationinteger6000

Custom Message

SnMessage.message(message, time, addClass = 'default', type = 'question')
PropertyDescriptionTypeDefault
messageMessage text contentstring-
timetime durationinteger20000
addClasscustom class namestringdefault
typeSedna iconstringquestion