closeWidget

Closes the floating Loyalty widget on the frontend. This function does not accept any parameters and does not return any data.

RivoJS.closeWidget();

Usage

Call this function when you want to programmatically close the Loyalty App widget. For example, this could be useful if you want to close the widget after a certain time period, or in response to some other user interaction in your implementation.