Javascript plugins
jQuery plugins
Legal
Add to calendar provides simple and versatile methods to control and customize the behavior of your button. These methods can be applied to any element where Add to calendar has been initialized.
show
Opens options dropdown for the selected trigger. This method allows you to trigger options dropdown programmatically, giving you control over when it should be displayed.
EXAMPLE
document.querySelector('#myButton').atc('show');
hide
Closes options dropdown if it is currently open. This method lets you manage when options dropdown should be hidden, such as in response to user interactions or specific events.
EXAMPLE
document.querySelector('#myButton').atc('hide');
set
Updates or modifies the options of your button after it has been initialized. Use this method to adjust settings dynamically, ensuring options dropdown adapts to your application’s needs.
EXAMPLE
document.querySelector('#myButton').atc('set', { overlay: true });