breadlesscode/neos-notification

v1.1.0 2017-12-24 12:12 UTC

This package is auto-updated.

Last update: 2024-09-21 21:06:46 UTC


README

Latest Stable Version Downloads license

此包包含一个通知组件和一个后端通知节点类型。

需求

  • NEOS >=3.3

安装

composer require breadlesscode/neos-notification

配置

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'

用法

您可以在 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'
    }

许可证

MIT 许可证 (MIT)。请参阅许可证文件以获取更多信息。