Component fork of sofish/essage with API changed.
Deprecated not maintained any more
Install with component(1):
$ component install chemzqm/essage
var Essage = require('essage');
Essage.show('hello, im a message', {
timeout: 2000,
placement: 'bottom',
status: 'success'
})
Show msg
with optional options.
options:
timeout
hide the message in timeout ms.placement
the placement can betop
orbottom
, by default istop
.status
could beinfo
warning
success
error
would add classessage-[status]
container.
Hide the message.
MIT