eleiva/yii2-noty

Wrapper of jquery plugin noty

Installs: 874

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 5

Open Issues: 4

Type:yii2-extension

dev-master 2015-03-06 13:06 UTC

This package is not auto-updated.

Last update: 2025-06-17 11:34:57 UTC


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',
              ]);