Notification Widget

On this page, you can check out a demo of the Notification Widget provided by Sitecore Personalize.

Settings

Display Position and Slide Movement

You can control the display position of the notification widget. This can be set with three items.

  • Vertical Position: Can be set to top or bottom
  • Horizontal Position: Can be set to right or left
  • Display Direction: Can be set to display from any of the four directions (top, bottom, left, right)
Image
Image
Image
Image

Notification Text

The Notification Widget allows you to set one text. This item can be changed in General - Text.

Code Review

The variables included in the HTML are as follows:

VariableTypeDescription
TextstringNotification title

HTML Code

The HTML for the Notification Widget is set as follows:

Notification.html

JavaScript Code

The JavaScript for the Notification Widget is set as follows:

Notification.js