Message
Display a popup message on the page.
To display a message, invoke the open method.
Block
Methods
onClick:
- id: open
type: CallMethod
params:
blockId: block_id
method: open
Block Setup
id: block_id
type: Message
Settings
Message JSON Schema Definition
type: object
properties:
events:
additionalProperties: false
properties:
onClose:
description: Trigger actions when message is closed.
type: array
type: object
properties:
additionalProperties: false
properties:
content:
description: The content of the message.
type: string
duration:
default: 4.5
description: Time(seconds) before auto-dismiss, don't dismiss if set to 0.
type: number
icon:
description: >-
Name of an Ant Design Icon or properties of an Icon block to customize
message icon.
type:
- string
- object
messageStyle:
description: Css style to applied to message.
type: object
status:
default: info
description: Message status type.
enum:
- success
- error
- info
- warning
- loading
type: string
type: object