The plugin configuration allows defining one or more messages. Every message can appear at a specific time and have specific content. Messages can appear as either an overlay or a toast message.
{
messages: [
{
title: '...',
description: '...',
showToast: false,
redisplayMessage: false,
buttons: [
// ...
],
timing: {
// ...
}
}
];
}
Description: See under Message timing.
Although title, description and buttons are all optional fields - at least one of them needs to be set, otherwise the message will not appear. To set data for a button, both the button label and the button link need to be set.
At least one of the message start time fields - showOnStart, showOnEnd, timeFromStart or timeFromEnd - must be set to a valid value. A message will appear at its start time and be visible until either: its duration expires (if duration is set), or until it is dismissed by the user. If the user seeks back into a message's time range after it has already been displayed, the message will appear again, unless either: it was dismissed by the user, or redisplayMessage is true.