Skip to content

Releases: yii2mod/yii2-sweet-alert

1.3 Release

16 Sep 08:28
Compare
Choose a tag to compare

1.2 Release

27 Jul 09:45
Compare
Choose a tag to compare

Date: Wednesday, July 27, 2016

  1. Update widget usage
  2. Update docs

1.1 Release

18 Jul 17:00
Compare
Choose a tag to compare

Date: Monday, July 18, 2016

  1. Add tests
  2. Update composer.json

1.0.1 Release

01 Jun 10:47
Compare
Choose a tag to compare

Date: Wednesday, June 1, 2016

  1. Add callback property to the Alert widget. Usage example:
echo \yii2mod\alert\Alert::widget([
    'options' => [
        'useSessionFlash' => false,
        'timer' => null,
        'type' => \yii2mod\alert\Alert::TYPE_WARNING,
        'title' => 'Are you sure?',
        'text' => 'You will not be able to recover this imaginary file!',
        'confirmButtonText' => 'Yes, delete it!',
        'closeOnConfirm' => false,
        'showCancelButton' => true,
    ],
    'callback' => new \yii\web\JsExpression('function() { 
           swal("Deleted!", "Your imaginary file has been deleted.", "success"); 
    }')
]);
  1. Update docs

initial

24 Sep 10:45
Compare
Choose a tag to compare
Merge pull request #4 from vals2004/master

fix for init without Flash