ereminmdev/yii2-notyf
Composer 安装命令:
composer require ereminmdev/yii2-notyf
包简介
Alternative confirmation messages for Yii framework.
关键字:
README 文档
README
Alternative alert - success - error - warning - information - confirmation messages for Yii framework.
Based on JavaScript library: https://github.com/caroso1222/notyf
Install
composer require --prefer-dist ereminmdev/yii2-notyf
Documentation
https://github.com/caroso1222/notyf#global-configuration
Use
Use in view:
<?php
NotyfAsset::register($this);
$this->registerJs('
// Create an instance of Notyf
var notyf = new Notyf();
// Display an error notification
notyf.error("You must fill out the form before moving forward");
// Display a success notification
notyf.success("Your changes have been successfully saved!");
');
?>
统计信息
- 总下载量: 59
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-02-20