2017 © Pedro Peláez
 

library yii2-sweet-submit

make yii2 form submit sweet

image

light/yii2-sweet-submit

make yii2 form submit sweet

  • Saturday, August 12, 2017
  • by light
  • Repository
  • 6 Watchers
  • 24 Stars
  • 203 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

, (*1)

Yii2 Sweeet Submit


version Download Issues, (*2)

By default yii.js using browser's confirm function to show confirm message.This library used sweet-alert to instead it:, (*3)

before, (*4)

after, (*5)

Install

$ composer require light\yii2-sweet-submit=*

Usage

you can depends this in your assets:, (*6)

class AppAsset extends AssetBundle
{
    //..

    public $depends = [
        //your other depends
        'light\widgets\SweetSubmitAsset'
    ];
}

Or directly inject in the view:, (*7)

use light\widgets\SweetSubmitAsset;

SweetSubmitAsset::register($this);

Once you had depends it in your project, yii.swal is available. What's this? It's just the sweet-alert, now you can use it:, (*8)

//your some.js
yii.swal('Opps. this is shown by sweet-alert');

There is more usage you can find from document, (*9)

License

MIT, (*10)

The Versions

12/08 2017

dev-master

9999999-dev

make yii2 form submit sweet

  Sources   Download

MIT

The Requires

 

The Development Requires

by lichunqiang

06/01 2016

1.0.1

1.0.1.0

make yii2 form submit sweet

  Sources   Download

MIT

The Requires

 

The Development Requires

by lichunqiang

30/11 2015

1.0.0

1.0.0.0

make yii2 form submit sweet

  Sources   Download

MIT

The Requires

 

by lichunqiang