vulcandigital/silverstripe-bootboxalert
Composer 安装命令:
composer require vulcandigital/silverstripe-bootboxalert
包简介
Easily create a bootbox.js alert programatically using sessions
README 文档
README
Easily create a bootbox.js alert programatically using sessions
Requirements
- silverstripe/framework: ^4
Usage
Your controller
class PageController extends ContentController { private static $extensions = [ Vulcan\BootboxAlert\Extensions\BootboxAlertExtension::class ]; }
In your global template (Page.ss):
$BootboxAlert
Placing this method in the template will allow the script to be added to the page requirements at the very end to ensure bootbox has been required.
Setting the alert
BootboxAlert::setAlert("Example message");
License
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2018-02-23