bajzany / notify
Notify Control for Nette Framework
Installs: 552
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Type:extensions
Requires
- php: ^7.2
- latte/latte: ^2.4
- nette/application: ^2.4
- nette/bootstrap: ^2.4
- nette/di: ^2.4
- nette/utils: ^2.4
- nettpack/stage: ^1.0
This package is auto-updated.
Last update: 2024-10-25 07:51:03 UTC
README
Nette notification for message
Required:
Instalation
-
Composer instalation
composer require bajzany/notify dev-master
-
Register into Nette Application
extensions: Notify: Bajzany\Notify\DI\NotifyExtension
-
How to Use:
-
In presenter notifyTrait;
use NotifyTrait;
-
Adding to notifications collections
$this->addNotify('Second notification', 'NotifyControl', Notification::TYPE_PURPLE);
-
Template (.latte) in your base Latte
{control notify}
-
-
Create callable property onAfterRender and function afterRender into presenter where is placed notifyTrait. This is important because in ajax request must be start redrawControl.
/** * @var callable[] */ public $onAfterRender = []; protected function afterRender() { parent::afterRender(); $this->onAfterRender(); }