Mounted ViewModel
(Adding message template to the top of the page)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{message|Write the content here to display this box}}
<message>Write the content here to display this box</message>
You can insert a [[Training:ViewModel|ViewModel]] within another ViewModel at any point where the column in the ViewModel is an [[Documentation:Objects|object]] and there's no associated ViewModel [[Documentation:Class|class]].
You can insert a [[Training:ViewModel|ViewModel]] within another ViewModel at any point where the column in the ViewModel is an [[Documentation:Objects|object]] and there's no associated ViewModel [[Documentation:Class|class]].


Line 7: Line 7:


'''Note:''' One limitation on the mounted ViewModel is that you cannot use the [[Built in ViewModel variables|vCurrent_Root]] in the mounted (since it is owned by the outer view and has the value of the outer ViewModel).
'''Note:''' One limitation on the mounted ViewModel is that you cannot use the [[Built in ViewModel variables|vCurrent_Root]] in the mounted (since it is owned by the outer view and has the value of the outer ViewModel).
[[Category:MDriven Framework]]
[[Category:MDriven Turnkey]]

Latest revision as of 05:53, 4 July 2024

You can insert a ViewModel within another ViewModel at any point where the column in the ViewModel is an object and there's no associated ViewModel class.

.

The result will be the same as if you would repeat all the things from the ViewModel inside a new Nesting from the mount-point. The new Nesting will have the same name as the mounted ViewModel.

Note: One limitation on the mounted ViewModel is that you cannot use the vCurrent_Root in the mounted (since it is owned by the outer view and has the value of the outer ViewModel).

This page was edited 77 days ago on 07/04/2024. What links here