Notification
Display a popup notification on the page.
To display a notification, invoke the open method.
Block
Methods
onClick:
- id: open
type: CallMethod
params:
blockId: block_id
method: open
Block Setup
id: block_id
type: Notification
Settings
Notification JSON Schema Definition
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