OCLOperators DisplayMode
No edit summary
No edit summary
Line 1: Line 1:
There is a property on selfVM called DisplayMode - that has one of the values  
There is a property on [[Documentation:SelfVM|selfVM]] called DisplayMode - that has one of the values  
  enum DisplayModeEnum { UINormal, UIModal, UIPopup, Technical, RestPost, RestGet, RestPatch, RestPut,RestDelete };
  enum DisplayModeEnum { UINormal, UIModal, UIPopup, Technical, RestPost, RestGet, RestPatch, RestPut,RestDelete };
Since ViewModels may have multiple usages it is good to be able to know the current use.
Since ViewModels may have multiple usages it is good to be able to know the current use.

Revision as of 13:36, 31 March 2025

This page was created by Hans.karlsen@mdriven.net on 2025-03-31. Last edited by Stephanie@mdriven.net on 2025-04-24.

There is a property on selfVM called DisplayMode - that has one of the values

enum DisplayModeEnum { UINormal, UIModal, UIPopup, Technical, RestPost, RestGet, RestPatch, RestPut,RestDelete };

Since ViewModels may have multiple usages it is good to be able to know the current use.

ViewModels used as Templates in transform, DeepClone, ServerSide, SysAsyncTickets, OpenDocument Reports, Tajson etc will all have DisplayMode.Technical.

ViewModels rendering pages as MVC will also have the DisplayMode Technical.

UI in WPF and Turnkey (both AngularJS and Blazor) will set the DisplayMode to one of UINormal, UIMModal, UIPopup