Life Ring Button (Legacy)
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.
open()
Shows the life ring button modal without the launcher.
hide()
Closes the modal and detaches the launcher button.
close()
Closes the modal.
isOpened()
Returns true
if the modal is opened, false
if it is not.
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.