bajzany / notify
Notify Control for Nette Framework
Installs: 553
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:JavaScript
Type:extensions
pkg:composer/bajzany/notify
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: 2025-10-25 10:28:26 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(); }