Skip to content

Instantly share code, notes, and snippets.

@shopifypartners
Created January 28, 2020 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shopifypartners/275f6fc039359ee2ea8cb45db27fcb0c to your computer and use it in GitHub Desktop.
Save shopifypartners/275f6fc039359ee2ea8cb45db27fcb0c to your computer and use it in GitHub Desktop.
Setting POS toast notices (with App Bridge)
const toastNoticeOptions = {
message: 'Product saved',
duration: 5000,
};
const toastNotice = Toast.create(app, toastNoticeOptions);
const toastErrorOptions = {
message: 'Error saving',
duration: 5000,
isError: true,
};
const toastError = Toast.create(app, toastErrorOptions);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment