LearnNewsExamplesServices
Frontmatter
id1883
titlelayout.Card: support lazy loading items
stateClosed
labels
enhancement
assigneestobiu
createdAtApr 28, 2021, 2:13 PM
updatedAtApr 28, 2021, 2:52 PM
githubUrlhttps://github.com/neomjs/neo/issues/1883
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 28, 2021, 2:52 PM

layout.Card: support lazy loading items

Closed v8.1.0 enhancement
tobiu
tobiu commented on Apr 28, 2021, 2:13 PM

module can optionally be a function.

example:

            items: [{
                module         : () => import('./TableContainer.mjs'),
                reference      : 'table-container',
                tabButtonConfig: {
                    iconCls: 'fa fa-table',
                    route  : 'mainview=table',
                    text   : 'Table'
                }
            }, {
                module         : () => import('./mapboxGl/Container.mjs'),
                tabButtonConfig: {
                    iconCls: 'fa fa-globe-americas',
                    route  : 'mainview=mapboxglmap',
                    text   : 'Mapbox GL Map'
                }
            }]

epic.

tobiu added the enhancement label on Apr 28, 2021, 2:13 PM
tobiu assigned to @tobiu on Apr 28, 2021, 2:13 PM
tobiu referenced in commit fbab213 - "layout.Card: support lazy loading items #1883" on Apr 28, 2021, 2:14 PM
tobiu referenced in commit 6aa2517 - "#1883 cleanup" on Apr 28, 2021, 2:15 PM
tobiu referenced in commit 2fe283f - "#1883 tab.Container: afterSetActiveIndex() => ensure the layout afterSetActiveIndex() does get called when lazy loading the initial module" on Apr 28, 2021, 2:26 PM
tobiu referenced in commit 74dd663 - "#1883 tab.Container: afterSetActiveIndex() => switched the method to async to wait for the card layout change (async) and then fire the change event" on Apr 28, 2021, 2:34 PM
tobiu referenced in commit 2606957 - "#1883 layout.Card: afterSetActiveIndex() => run the loop twice to reduce vdom updates" on Apr 28, 2021, 2:43 PM
tobiu referenced in commit 8a21e06 - "#1883 layout.Card: afterSetActiveIndex() => remove the entries var" on Apr 28, 2021, 2:51 PM
tobiu
tobiu Apr 28, 2021, 2:52 PM

done.

tobiu closed this issue on Apr 28, 2021, 2:52 PM