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.

close()

Closes the modal.

listen(event, callback)

Listens to a Life Ring Button event and calls the callback. Supported events are closed - this event is triggered when the Life Ring Button is closed; opened - triggered when the modal is opened.