Message
Overview
Use the message method to display dialogue at the top of the interface to provide quick and brief feedback on the result of an operation. Used to convey general acknowledgment of non-essential operations.
For example, you can display a pop-up message informing the merchant that their recent operation was successful.
Related APIs
Name | Description | Return value |
---|---|---|
Open | Open message | void |
Parameter description
Name | Description | Type |
---|---|---|
messageInfo | Message type | string |
type | Message type | success | warning | info | error |
Code example
import { Modal, Message } from '@shoplinedev/appbridge'
Message.create(app).Open({
messageInfo: 'successful',
type: 'success'
})
Was this article helpful to you?