bootstrap-growl

Pretty simple jQuery plugin that turns standard Bootstrap alerts into "Growl-like" notifications.

  • 所有者: longlostnick/bootstrap-growl
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

bootstrap-growl

Pretty simple jQuery plugin that turns standard Bootstrap alerts into hovering "Growl-like" notifications.

Demo

I have a basic demo set up at jsfiddle for the time being which you can view here: http://jsfiddle.net/ifightcrime/Us6WX/1008/

Features

  • Uses standard Twitter Bootstrap alerts which provides 'info', 'danger', and 'success' styles.
  • Multiple growls called consecutively are stacked up one after another in a list.
  • Automatically fades growls away after a default of 4 seconds.

Dependencies

  1. Latest version of jQuery. (tested on 1.11.0)
  2. Twitter Bootstrap. (current rev tested with 3.3.1)

Usage

Include the dependencies and jquery.bootstrap-growl.min.js into your page and call the following:

$.bootstrapGrowl("My message");

Available Options

By default, growls use the standard 'alert' Bootstrap style, are 250px wide, right aligned, and are positioned 20px from the top right of the page.

$.bootstrapGrowl("another message, yay!", {
  ele: 'body', // which element to append to
  type: 'info', // (null, 'info', 'danger', 'success')
  offset: {from: 'top', amount: 20}, // 'top', or 'bottom'
  align: 'right', // ('left', 'right', or 'center')
  width: 250, // (integer, or 'auto')
  delay: 4000, // Time while the message will be displayed. It's not equivalent to the *demo* timeOut!
  allow_dismiss: true, // If true then will display a cross to close the popup.
  stackup_spacing: 10 // spacing between consecutively stacked growls.
});

Note: Previous top_offset is not broken by this latest change.

Additional Contributors

主要指标

概览
名称与所有者longlostnick/bootstrap-growl
主编程语言JavaScript
编程语言Ruby (语言数: 4)
平台
许可证MIT License
所有者活动
创建于2012-08-09 16:19:36
推送于2018-01-04 05:44:30
最后一次提交2018-01-03 21:44:29
发布数2
最新版本名称v1.1.0 (发布于 )
第一版名称v1.0.0 (发布于 )
用户参与
星数805
关注者数45
派生数204
提交数75
已启用问题?
问题数41
打开的问题数18
拉请求数17
打开的拉请求数7
关闭的拉请求数10
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?