Close Widget

Similarly to the Open function, you can use this method to close the Agastya widget. If it is already closed, there will be no effect to calling this method. When a user closes Agastya, the widget is not removed from the DOM, it just fades out, and is displayed again when the open method is called.

agastya.close();

You can add this method to a button with a simple onclick event, for example:

<button onclick="agastya.close()">Close Accessibility Options</button>