Skip to main content
Nintex Community Menu Bar
Question

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

  • Jul 9, 2024 5:07 PM UTC
  • 2 replies
  • 37 views
  • Translate All

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

Translate

Forum|alt.badge.img+7
  • Author
  • Jul 9, 2024 5:37 PM UTC

Sweet!   Thanks so much - works perfect.

Translate