Widget - API : fonctions
Available Functions
Section titled “Available Functions”open(true|false)
Section titled “open(true|false)”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
close()
Section titled “close()”window.ProAbono.close(); // equivalent to: window.ProAbono.open(false);
Return | Response:
A Promise
toggle()
Section titled “toggle()”window.ProAbono.toggle()
Return | Response:
A Promise
isSubscriber()
Section titled “isSubscriber()”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