Bootstrap Component
  • Home
  • Darklight
  • Datepicker
  • Dialog
  • Dropdown
  • Fileuploader
  • Floater
  • Slider
  • Switch
  • Notify
  • Others

Notify

Simple component for message notification.

  • Example
  • Usage
  • - Options
  • - Events

Notify bootstrap-notify.js

Examples

Notify is used to alert notification floated on the screen.

Usage

Enable darklight via JavaScript:

$.notify({
	title: "Hi",
	content: "This is notification."
});

Options

Options should be passed via JavaScript.

Name type default description
title string Notification Set the title. You can also set element as title.
content string Set the content. You can also set element as content.
position string right,top Set the position. left, right, top, bottom. You can mix then up as left,top (it's same as "top,left").
type string normal Set notification type. normal, warning, info, error, success.
region string Set notification region. Notification will not keep out other notification if they are in same region.
timeout number 4000 number determining how long the notification will disappear. Set -1 for notification not auto-disappear.

Events

Event Description
callback It will trigger when notification created. You can get notification element as $(this).

Build By zombieJ.