Tab 'When First Shown' actions triggered on pageload

Matt SonesMatt Sones πŸ’ŽπŸ’ŽπŸ’Ž
edited March 7, 2017 in Questions
It seems that if a tabset is set NOT defer rendering of tab contents, the 'When First Shown' actions for the tab are run immedately on pageload. That's not what I would expect...

Comments

  • Matt SonesMatt Sones πŸ’ŽπŸ’ŽπŸ’Ž
    edited February 10, 2017
    Is there any way I can have the tabset not defer rendering of contents and still 'lazy load' a page include?
  • J.J. πŸ’Ž
    edited March 7, 2017
    Matt,

    Are you wanting just the Page Include lazy loaded so that it's the only tab with a delay when the User clicks on it?Β Right now, there isn't a way to do that.

    "When First Shown" actions can also be thought of as "When First Rendered" actions. I think the reason for this is that even if your tab isn't selected (i.e. visible), the components contained on it may need an action in your "When First Shown" actions to be run (e.g. a Table that needs a model queried in order to render properly).
  • Matt SonesMatt Sones πŸ’ŽπŸ’ŽπŸ’Ž
    edited February 10, 2017
    J.--
    Thanks for the response. I thought that i couldn't make the whole tabset defer because of some code we are running to track how long a user is on each tab (which originally required that all the tabs be rendered on pageload). I was able to adjust that code, so now I can defer rendering of all tabs.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!