[Vtigercrm-developers] JS event trigger on tab change in detail view

Alan Lord alanslists at gmail.com
Tue Jul 27 08:03:19 GMT 2021


I am fairly sure it is triggered then as well.

I use it fairly often.

Grep for all the the app.event.trigger calls with that event name.

Al

On 27/07/2021 08:58, nilay khatri wrote:
> Ah no, although that is correct when you want to play with related lists.
> 
> Challenge is for changing tabs, summary to detail, update, or any other 
> custom tab added.
> 
> On Tue, Jul 27, 2021 at 1:16 PM Alan Lord <alanslists at gmail.com 
> <mailto:alanslists at gmail.com>> wrote:
> 
>     On 27/07/2021 07:23, nilay khatri wrote:
>      > We have Headerscript which injects few elements in the Details
>     view of
>      > records.
>      >
>      > The problem is when the user switches between the Tabs, summary,
>     detail,
>      > related lists. There seems to be no specific event which is
>     triggered
>      > after the particular tab has been loaded.
> 
>     Am pretty sure it's this:
> 
>     app.event.on("post.relatedListLoad.click", function(event, container) {
>              ...
>     }
> 
> 
>     Check in Vtiger_Detail_Js
> 
>     Obviously, you must have the right container element to attach the
>     listener to in the first place.
> 
>     HTH
> 
>     Al
> 
>     _______________________________________________
>     http://www.vtiger.com/ <http://www.vtiger.com/>
> 
> 
> _______________________________________________
> http://www.vtiger.com/
> 


More information about the vtigercrm-developers mailing list