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
Page 1 / 1
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.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.