Javascript on Tab Selection

I am trying to call the javascript when Tab is selected to refresh the model with custom conditions. But couldnt find the right way.  Pls share any ideas on this. 

You may want to check out this post for ideas
https://community.skuidify.com/skuid/topics/run_code_when_tab_loads


Thanks Irvin… I will check this one.