How to trigger tab show

I am using v3 and using tabs, but how can I trigger tab show event?

In the docs it says like this “tab:show” and I try this but does not work

  $$('#latest').on('tab:show', function() {
    app.alert('latest is visible');
  });

Try

 $$(document).on('tab:show', '#latest', function() {
    app.alert('latest is visible');
  });
1 Like

This worked for me :+1: