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.

NameDescriptionReturn value
OpenOpen messagevoid

Parameter description

NameDescriptionType
messageInfoMessage typestring
typeMessage typesuccess | 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?