Interface IModelView
The base interface all UI views within a layout must implement within any client application.
Views are created by the CreateView(ViewDescriptorInstance) client implementation that creates the specific UI components according to the type of application
All views belong to a layout, see https://help.lemonedge.com/layouts/ for more informationNamespace: LemonEdge.Client.Core.Views.Core
Assembly: LemonEdge.ClientCore.dll
Syntax
public interface IModelView
Properties
Controller
The instance of the controller responsible for manipulating this view
Declaration
IModelViewController Controller { get; }
Property Value
Type | Description |
---|---|
IModelViewController |
Descriptor
The original descriptor of this view, used to create it, and contains custom settings such as visibility formulas and more
Declaration
ViewDescriptorInstance Descriptor { get; }
Property Value
Type | Description |
---|---|
ViewDescriptorInstance |
Displayer
The owning layout displayer this view is an instance member of
Declaration
IModelLayoutDisplayer Displayer { get; }
Property Value
Type | Description |
---|---|
IModelLayoutDisplayer |
Methods
ClearUI()
Responsible for clearing the display of this view, and resetting it back to an empty state
Declaration
Task ClearUI()
Returns
Type | Description |
---|---|
Task | A task indicating the completion of the operation |
ReActivateView()
This is only used for views that are displayed, then hidden, and then redisplayed (such as on mobile or other limited screen estate devices)
This is called to re activate the view if anything is "stuck" due to the view being moved to the background and back
Default implementation does nothingDeclaration
void ReActivateView()
ValidateUI()
Called before a layout context is saved, or in any other way processed. Allows each view the chance to finish recieving user input and validating it before all the data is processed.
Ensures if editing a cell in a grid, and save is pressed, the view has the chance to capture the input and process it before the save is executed.
Default implementation does nothingDeclaration
void ValidateUI()