Life Ring Button

Description

This JS API provides you access to the life ring button tool. Access methods on this object:

productFruits.api.button

Methods

show()

Attaches the launcher button, if it's not attached and opens the modal.

hide()

Closes the modal and detaches the launcher button.

listen(event, callback)

Listens to a Life Ring Button event and calls the callback. The only supported event is closed - this event is triggered when the Life Ring Button is closed.