Skip to content

ereminmdev/yii2-noty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii2-noty

Alternative alert - success - error - warning - information - confirmation messages for Yii framework.

Based on JavaScript library: https://ned.im/noty/#/

Install

composer require --prefer-dist ereminmdev/yii2-noty

Documentation

See for clientOptions: https://ned.im/noty/#/options

Use

Insert widget into view:

<?= \ereminmdev\yii2\noty\NotyWidget::widget([
    'text' => 'Some text...',
]); ?>

or with more options:

<?= \ereminmdev\yii2\noty\NotyWidget::widget([
    'text' => 'Some text...',
    'type' => 'alert',
    'layout' => 'topRight',
    'theme' => 'bootstrap-v3',
    'clientOptions' => [
        ...
    ],
]); ?>

See all client options: https://ned.im/noty/#/options

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages