Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 1011 Bytes

JqueryToaster.md

File metadata and controls

45 lines (36 loc) · 1011 Bytes

Jquery Toaster

"JqueryToaster"

Installation

"loveorigami/yii2-notification-wrapper": "*",
"bower-asset/jquery.toaster": "*"

to the require section of your composer.json file.

Usage

use lo\modules\noty\Wrapper;

echo Wrapper::widget([
         'layerClass' => 'lo\modules\noty\layers\JqueryToaster',
         // default options
         'options' => [
            'settings' => [
                'toaster' => [
                    'css' => [
                        'position' => 'fixed',
                        'top' => '10px',
                        'right' => '10px',
                        'width' => '300px',
                        'zIndex' => 50000
                    ],
                ],
                'toast' => [
                    'fade' => 'slow',
                ],
            'timeout' => 3000
            ]

        // and more for this library here https://github.com/scottoffen/jquery.toaster
    ],
]);