Lazy loading for secondaryTabs?

Hi,

As per the documentation Form Fields - October CMS - 3.x

I tried - it did work (well, I see the spinner when I click on the tab):

tabs:
    lazy:
        - Accounting
    fields:
        amount:
            tab: Accounting
            label: Amount
            span: row
            spanClass: col-md-3
            type: text

Then I tried this, on secondaryTabs, it doesn’t work:

secondaryTabs:
    lazy:
        - Activities
    fields:
        activities:
            tab: Activities
            label: Activities
            type: partial
            path: $/author/plugin/controllers/dealers/_activities.htm

Where in $/author/plugin/controllers/dealers/_activities.htm:

<?= $this->relationRender('activities'); ?>

I don’t see the spinner (I assume it’s not lazy loading). Is this a bug?

You can verify if its lazy loading or not by viewing network tab in inspect element, and seeing if the network request is being made. Irrespective of if the loader is being shown or not.

1 Like

Laziness got the better of me before I left yesterday, haha.

But shame on me, I tested too quickly. It does work, so the issue is resolved. Sorry if any searches were conducted.

1 Like