Skip to content

Widget - API : fonctions

Parameters:
The single parameter indicates whether you want to open (true) or close (false) the widget.

window.ProAbono.open(); // equivalent to: window.ProAbono.open(true)

Return | Response:

A Promise

window.ProAbono.close(); // equivalent to: window.ProAbono.open(false);

Return | Response:
A Promise

window.ProAbono.toggle()

Return | Response:
A Promise

var isSubscriber = window.ProAbono.isSubscriber()

Return | Response:

  • true: the user has a valid subscription
  • false: the user does not have a valid subscription
  • null: the information is not yet available