LearnNewsExamplesServices
Frontmatter
id3645
titleEnable view model bindings into layouts
stateClosed
labels
enhancement
assigneestobiu
createdAtDec 20, 2022, 10:18 AM
updatedAtDec 20, 2022, 10:28 AM
githubUrlhttps://github.com/neomjs/neo/issues/3645
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 20, 2022, 10:28 AM

Enable view model bindings into layouts

Closed v8.1.0 enhancement
tobiu
tobiu commented on Dec 20, 2022, 10:18 AM

Right now, view models (model.Component) are limited to components, which also includes bindings (bind config).

It would be very useful to allow bindings inside layouts as well.

Example: {ntype: 'card', bind: {activeIndex: data => data.activeIndex}}

We could automatically switch the card layout index of a container in case a vm data prop changes.

I am not sure if there are other good use cases, but to keep it generic, I will add the required logic into layout.Base.

tobiu added the enhancement label on Dec 20, 2022, 10:18 AM
tobiu assigned to @tobiu on Dec 20, 2022, 10:18 AM
tobiu referenced in commit d5b4a78 - "Enable view model bindings into layouts #3645" on Dec 20, 2022, 10:28 AM
tobiu closed this issue on Dec 20, 2022, 10:28 AM