Lowdefy
v3.23.3/display/Notification/

Notification

Display a popup notification on the page.

To display a notification, invoke the open method.

onClick:
- id: open
  type: CallMethod
  params:
    blockId: block_id
    method: open

id: block_id
type: Notification

properties:
Distance from the bottom of the viewport, when placement is bottomRight or bottomLeft (unit: pixels).
block.properties.button:
Name of an Ant Design Icon or properties of an Icon block to use icon in button.
Title text on the button.
The button type.
Name of an Ant Design Icon or properties of an Icon block to customize close icon.
The content of notification box - supports html.
Time in seconds before Notification is closed. When set to 0 or null, it will never be closed automatically.
Name of an Ant Design Icon or properties of an Icon block to customize notification icon.
The title of notification box - supports html.
Css style to applied to notification.
Position of Notification.
Notification status type.
Distance from the top of the viewport, when placement is topRight or topLeft (unit: pixels).
type: object
properties:
  events:
    additionalProperties: false
    properties:
      onClick:
        description: Trigger actions when notification is clicked.
        type: array
      onClose:
        description: Trigger actions when notification is closed.
        type: array
    type: object
  properties:
    additionalProperties: false
    properties:
      bottom:
        default: 24
        description: >-
          Distance from the bottom of the viewport, when placement is bottomRight
          or bottomLeft (unit: pixels).
        type: number
      button:
        description: >-
          Button object to customized the close button. Triggers onClose event
          when clicked.
        type: object
      closeIcon:
        description: >-
          Name of an Ant Design Icon or properties of an Icon block to customize
          close icon.
        type:
          - string
          - object
      description:
        description: The content of notification box - supports html.
        type: string
      duration:
        default: 4.5
        description: >-
          Time in seconds before Notification is closed. When set to 0 or null, it
          will never be closed automatically.
        type: number
      icon:
        description: >-
          Name of an Ant Design Icon or properties of an Icon block to customize
          notification icon.
        type:
          - string
          - object
      message:
        description: The title of notification box - supports html.
        type: string
      notificationStyle:
        description: Css style to applied to notification.
        type: object
      placement:
        default: topRight
        description: Position of Notification.
        enum:
          - topLeft
          - topRight
          - bottomLeft
          - bottomRight
        type: string
      status:
        description: Notification status type.
        enum:
          - success
          - error
          - info
          - warning
        type: string
      top:
        default: 24
        description: >-
          Distance from the top of the viewport, when placement is topRight or
          topLeft (unit: pixels).
        type: number
    type: object