Changelog Widget
Last updated
Last updated
The Suggest Feature changelog widget allows you to embed a changelog directly into your website, making it easy for users to stay updated on the latest features and changes. The widget attaches to a button, and when clicked, it displays the changelog in a modal.
First, include the Suggest Feature SDK by adding the following script inside the <head>
or <body>
tags of your HTML:
This will load the required functionality to initialize and control the changelog widget.
To trigger the changelog modal, attach it to a button using the data-sf-changelog
attribute. Here's an example:
Once initialized, clicking this button will open the changelog.
Next, you need to initialize the changelog widget. You can do this by using the SuggestFeature.init()
method, which takes several options to configure how the widget behaves.
domain: The domain where your feedback portal is hosted.
position: Sets the vertical position of the changelog (either top
or bottom
).
align: Sets the alignment of the changelog (left
or right
).
theme: Controls the appearance of the changelog (light
or dark
theme).
When there are unread changelogs, a notification dot will automatically appear on the button with the data-sf-changelog
attribute. This ensures users are notified when new updates are available.
You can customize the behavior of the changelog widget further by integrating it into your frontend components.
The changelog can be embedded in any framework or library that supports HTML and JavaScript.