breadlesscode / neos-notification
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:neos-plugin
This package is auto-updated.
Last update: 2024-12-21 21:42:17 UTC
README
This package includes a notification component and a notification node type for the backend.
Requirements
- NEOS >=3.3
Installation
composer require breadlesscode/neos-notification
Configuration
Breadlesscode: Notification: classes: base: 'alert' # if you only set base class, BEM naming is used content: 'alert-content' info: 'alert-info' warning: 'alert-warning' danger: 'alert-danger'
Usage
You can use the component like this in fusion:
notification = Breadlesscode.Notification:NotificationComponent {
onlyRenderInBackend = ${ false }
type = 'info'
content 'Hello world'
# and you can override the class configuration
baseClass = 'notification' # for BEM naming
# if you dont want BEM naming you can set each class manually
contentClass = 'notification__content'
containerClass = 'notification'
}
License
The MIT License (MIT). Please see License File for more information.