Skip to main content

I need to execute some jQuery on some DOM elements inside a tab.  I’ve tried doing this on the ‘pageload’ event, but that doesn’t fire when you click on a tab (and the DOM elements within the tab don’t render until you do the first click).  Is there another event I can use to be notified when the tab is rendered?  Is there any documentation on the events that are available (other than the few on the model in the developers guide)?

Thanks!

- Chris

function(skuid){   


   var $ = skuid.$;
$(function(){
$('body').on('tabshow',function(event){
var tabShown = $(event.target);
var tabId = tabShown.attr('id');
console.log(tabId);
});
});
})(skuid);




https://community.skuid.com/t/run-code-when-tab-loads


Sweet!   Thanks so much - works perfect.