This JS API provides you access to the feedback tool. Access methods on this object:
productFruits.api.feedback
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.