ifightcrime/bootstrap-growl
Composer 安装命令:
composer require ifightcrime/bootstrap-growl
包简介
Pretty simple jQuery plugin that turns standard Bootstrap alerts into 'Growl-like' notifications.
README 文档
README
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
- Latest version of jQuery. (tested on 1.11.0)
- 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
- Jose Martinez https://github.com/callado4
- Lloyd Watkin https://github.com/lloydwatkin
- TruongSinh Tran-Nguyen https://github.com/tran-nguyen
ifightcrime/bootstrap-growl 适用场景与选型建议
ifightcrime/bootstrap-growl 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 13.06k 次下载、GitHub Stars 达 800, 最近一次更新时间为 2013 年 03 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「bootstrap」 「growl」 「notifications」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ifightcrime/bootstrap-growl 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ifightcrime/bootstrap-growl 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ifightcrime/bootstrap-growl 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel Nova package that adds a notification feed in your Nova app.
Notifications for your Yii2 app
Views for the package MedicOneSystems Livewire Datatables with Bootstrap 4
bootstrap select field module implementing http://silviomoreto.github.io/bootstrap-select/
Captures outgoing SMS notifications
Simple GNTP notification library
统计信息
- 总下载量: 13.06k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 801
- 点击次数: 30
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-03-13