Wrapper of jquery plugin noty ( http://ned.im/noty/ )
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.
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',
]);