jquery-growl

Growler is a jQuery plugin designed to provide informative messages in the browser.

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

Github星跟踪图

jQuery Growl

Growl is a jQuery plugin designed to provide informative messages in the browser.

Installation

To install copy the javascripts, and stylesheets directories into your project and add the following snippet to the header:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js" type="text/javascript"></script>
<script src="javascript/jquery.growl.js" type="text/javascript"></script>
<link href="stylesheets/jquery.growl.css" rel="stylesheet" type="text/css" />

This plugin is also registered under http://bower.io/ to simplify integration. Try:

npm install -g bower
bower install growl

Gemfile

+ source 'https://rails-assets.org'
...
+ gem 'rails-assets-growl'

application.css

/*
 ...
 *= require growl
 ...
*/

application.js

//= require jquery
...
//= require growl

Examples

Growling is easy:

<script type="text/javascript">
  $.growl({ title: "Growl", message: "The kitten is awake!", url: "/kittens" });
  $.growl.error({ message: "The kitten is attacking!" });
  $.growl.notice({ message: "The kitten is cute!" });
  $.growl.warning({ message: "The kitten is ugly!" });
</script>

Advanced Options

Growl also supports some customization through the following options:

  • delayOnHover: while hovering over the alert, prevent it from being dismissed (true, false - default: true)
  • duration: the duration (in milliseconds) for which the alert is displayed (default: 3200)
  • fixed: whether the alert should be fixed rather than auto-dismissed (true, false - default: false)
  • location: the alert's position ('tl', 'tr', 'bl', 'br', 'tc', 'bc' - default: 'tr')
  • size: the alert's size ('small', 'medium', 'large' - default: 'medium')
  • style: the alert's style ('default', 'error', 'notice', 'warning' - default: 'default')

Deprecations

  • static has been renamed to fixed due to minifier incompatabilities

Status

Status

Copyright (c) 2010 - 2018 Kevin Sylvestre. See LICENSE for details.

主要指标

概览
名称与所有者ksylvest/jquery-growl
主编程语言CSS
编程语言Ruby (语言数: 5)
平台
许可证MIT License
所有者活动
创建于2011-05-21 16:53:42
推送于2021-05-08 04:43:19
最后一次提交2017-12-29 10:20:35
发布数36
最新版本名称v1.3.5 (发布于 2018-01-02 12:43:39)
第一版名称v1.0.0 (发布于 )
用户参与
星数409
关注者数18
派生数101
提交数97
已启用问题?
问题数37
打开的问题数5
拉请求数11
打开的拉请求数5
关闭的拉请求数8
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?