ViewModel actions
(Created page with "ViewModel actions are...")
 
(Updated Edited template to July 12, 2025.)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
ViewModel actions are...
<message>Write the content here to display this box</message>
 
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 [[Documentation:VCurrent and vSelected|vCurrent and vSelected]].{{Edited|July|12|2025}}

Latest revision as of 06:24, 20 January 2025

This page was created by Stephanie@mdriven.net on 2023-08-07. Last edited by Edgar on 2025-01-20.


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.

MDriven Chat

How would you like to chat today?

Setting up your conversation…

This may take a few moments