User feedback widget API

These are the functions that are currently supported. Let us know if you have use cases where you require specific functionalities or events.

Loading the widget

RoadmapWidget.load({ id: "your-roadmap-id", email: "email@youruser.com", custom: "value" });

This function is crucial and should be called before anything else. This is where you pass the data to the widget. You can read the article on how to install the widget for detailed instructions on how to use the function.

Opening the modal form

RoadmapWidget.show();

You may call the show function when you want to trigger the modal form to display. This is useful if you have a button or mechanism that needs to open the feedback widget.

Closing the modal form

RoadmapWidget.hide();

Similar to the show function the hide function simply hides the modal form. You have control from your JavaScript code to open and close the widget.