2017 © Pedro Peláez
 

yii2-extension yii2-sweetalert

SweetAlert widget for Yii2

image

branchonline/yii2-sweetalert

SweetAlert widget for Yii2

  • Friday, November 20, 2015
  • by JapMul
  • Repository
  • 4 Watchers
  • 2 Stars
  • 410 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

SweetAlert Widget for Yii 2

  • SweetAlert widget based on SweetAlert extension http://tristanedwards.me/sweetalert

Installation

The preferred way to install this extension is through composer., (*1)

Either run, (*2)

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

or add, (*3)

"branchonline/yii2-sweetalert": "*"

to the require section of your composer.json., (*4)

Usage

Once the extension is installed, simply add widget to your page as follows:, (*5)

1) Default usage, render all flash messages stored in session flash via Yii::$app->session->setFlash()., (*6)

echo SweetAlert::widget();

2) Custom usage example:, (*7)

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, (*8)

The Versions

20/11 2015

dev-master

9999999-dev

SweetAlert widget for Yii2

  Sources   Download

Apache-2.0

The Requires

 

by Jap Mul

yii2 module

20/11 2015

1.0.1

1.0.1.0

SweetAlert widget for Yii2

  Sources   Download

Apache-2.0

The Requires

 

by Jap Mul

yii2 module

13/05 2015

1.0

1.0.0.0

SweetAlert widget for Yii2

  Sources   Download

Apache-2.0

The Requires

 

by Jap Mul

yii2 module