承接 branchonline/yii2-sweetalert 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

branchonline/yii2-sweetalert

最新稳定版本:1.0.1

Composer 安装命令:

composer require branchonline/yii2-sweetalert

包简介

SweetAlert widget for Yii2

关键字:

README 文档

README

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist branchonline/yii2-sweetalert "*"

or add

"branchonline/yii2-sweetalert": "*"

to the require section of your composer.json.

Usage

Once the extension is installed, simply add widget to your page as follows:

  1. Default usage, render all flash messages stored in session flash via Yii::$app->session->setFlash().
echo SweetAlert::widget();
  1. Custom usage example:
echo SweetAlert::widget([
          'useSessionFlash' => false,
          'options' => [
               'title' => 'Success message',
               'type' => 'Success',
               'text' => "You will not be able to recover this imaginary file!",
               'confirmButtonText'  => "Yes, delete it!",   
               'cancelButtonText' =>  "No, cancel plx!"
          ]
]);

More info

More info about the SweetAlert can be found on options page

统计信息

  • 总下载量: 1.62k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 5
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2015-05-13