chemzqm / essage

elegant way to display tips/message

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Essage

Component fork of sofish/essage with API changed.

demo

Deprecated not maintained any more

Installation

Install with component(1):

$ component install chemzqm/essage

Usage

var Essage = require('essage');

Essage.show('hello, im a message', {
  timeout: 2000,
  placement: 'bottom',
  status: 'success'
})

API

Essage.show(msg, [options])

Show msg with optional options.

options:

  • timeout hide the message in timeout ms.
  • placement the placement can be top or bottom, by default is top.
  • status could be info warning success error would add class essage-[status] container.

Essage.hide()

Hide the message.

License

MIT

About

elegant way to display tips/message


Languages

Language:HTML 45.6%Language:JavaScript 37.9%Language:CSS 14.5%Language:Makefile 2.1%