LearnNewsExamplesServices
Frontmatter
id2354
titlecalendar.view.MainContainer: add a view model
stateClosed
labels
enhancement
assigneestobiu
createdAtJun 13, 2021, 4:48 PM
updatedAtJun 13, 2021, 4:57 PM
githubUrlhttps://github.com/neomjs/neo/issues/2354
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJun 13, 2021, 4:57 PM

calendar.view.MainContainer: add a view model

Closed v8.1.0 enhancement
tobiu
tobiu commented on Jun 13, 2021, 4:48 PM

Normally I don't use VMs for component creation.

The calendar is more like an app though, so it does make sense here:

We need to pass less configs to sub views and this enables you to use sub-views on their own (adding the VM).

Another benefit is that you can override "global" VM props with adding a VM for a child view. E.g. in case you want to use a different time format only inside the week view or only allow editing events there.

tobiu added the enhancement label on Jun 13, 2021, 4:48 PM
tobiu assigned to @tobiu on Jun 13, 2021, 4:48 PM
tobiu referenced in commit e39ed38 - "calendar.view.MainContainer: add a view model #2354" on Jun 13, 2021, 4:53 PM
tobiu referenced in commit c732832 - "#2354 calendar.week.Component: onEventDoubleClick() => check for a VM data prop" on Jun 13, 2021, 4:56 PM
tobiu closed this issue on Jun 13, 2021, 4:57 PM