> For the complete documentation index, see [llms.txt](https://developer.acquire.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.acquire.io/widget/functioning-customization/events-callbacks/onchatclosed.md).

# onChatClosed

> The on function with event and callback helps to off the default close event and trigger helps to fire the event with the necessary parameters

```
window.acquire = window.acquire || [];
acquire.push(function(app){
    app.on('close',function(){console.log(arguments)});
    app.trigger('close',1,2,3);
})
```
