ereminmdev/yii2-noty

This package is abandoned and no longer maintained. The author suggests using the ereminmdev/yii2-notyf package instead.

Alternative confirmation messages for Yii framework.

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

v1.0.1 2021-04-06 04:36 UTC

This package is auto-updated.

Last update: 2024-03-07 11:52:55 UTC


README

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