Feedback
Description
This JS API provides you access to the feedback tool. Access methods on this object:
productFruits.api.feedback
Methods
showModal(position, onClose)
Shows the feedback popup modal. It has two optional parameters. Use position
parameter with top
, left
, bottom
or right
properties to position the widget on a custom place. You have to use CSS units, i.e. left: '50px'
.
The second parameter is a callback function that is called when the widget is closing.
hideModal()
Closes the feedback popup modal.
changeRecorderMode('native')
Sets the feedback widget recording mode to the native screen recording mode for the current session. The differences between the two modes are described here. Only one mode can be set as default in your workspace settings.
changeRecorderMode('html')
Sets the feedback widget recording mode to the HTML recorder type for the current session.