ViewModel actions
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<message>Write the content here to display this box</message>
<message>Write the content here to display this box</message>


ViewModelActions have similar functionality as [[/wiki.mdriven.net/MDrivenStart ClassActions|Class actions]], but they act on ONE view rather than on the objects of a class - so you will find no "self" here. Instead, give what it is currently focused on in the view as variables starting with <code>vCurrent_</code> . When the user has selected multiple items in grids, you will find them in <code>vSelected_</code> collections for the corresponding View Model nesting.
ViewModelActions have similar functionality as [[Documentation:Class actions|Class actions]], but they act on ONE view rather than on the objects of a class - so you will find no "self" here. Instead, give what it is currently focused on in the view as variables starting with <code><span class="col-black">vCurrent_</span></code> . When the user has selected multiple items in grids, you will find them in <code><span class="col-black">vSelected_</span></code> collections for the corresponding View Model nesting.


Read more on [[/wiki.mdriven.net/VCurrent and vSelected|vCurrent and vSelected]].{{Edited|July|12|2024}}
Read more on [[Documentation:VCurrent and vSelected|vCurrent and vSelected]].{{Edited|July|12|2024}}

Latest revision as of 05:49, 27 June 2024


ViewModelActions have similar functionality as Class actions, but they act on ONE view rather than on the objects of a class - so you will find no "self" here. Instead, give what it is currently focused on in the view as variables starting with vCurrent_ . When the user has selected multiple items in grids, you will find them in vSelected_ collections for the corresponding View Model nesting.

Read more on vCurrent and vSelected.

This page was edited 4 days ago on 06/27/2024. What links here