Skip to main content
Nintex Community Menu Bar
Question

Is there an event when a tabs DOM elements are rendered?

  • July 9, 2024
  • 2 replies
  • 17 views

Forum|alt.badge.img+7

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

This topic has been closed for replies.

2 replies

Forum|alt.badge.img+11
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


Forum|alt.badge.img+7
  • Author
  • 50 replies
  • July 9, 2024

Sweet!   Thanks so much - works perfect.