Skip to content

eleiva/yii2-noty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Wrapper of jquery plugin noty ( http://ned.im/noty/ )

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist eleiva/yii2-noty "*"

or add

"eleiva/yii2-noty": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

  use eleiva\noty\Noty;
   echo Noty::widget([
        'text' => 'Hi! Looks good!',
        'type' => Noty::INFORMATION,
        'useAnimateCss' => true,
        'clientOptions' => [
            'timeout' => 5000,
            'layout' => 'top',
            'dismissQueue' => true,
            'theme' => 'relax',
            'animation' => [
                'open' => 'animated bounceInLeft',
                'close' => 'animated bounceOutLeft',
                'easing' => 'swing',
                'speed' => 500
            ]
        ]
    ]);

Or simply

   use eleiva\noty\Noty;
   echo Noty::widget([
                'text'=> 'Helloo WORLD',
              ]);

About

wrapper of jquery plugin noty2

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages