Class TextSerializedParamController
The controller for displaying and handling the TextEditorParam to the user
Inheritance
TextSerializedParamController
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Support
Assembly: LemonEdge.ClientCore.dll
Syntax
public class TextSerializedParamController : ParamViewerController<TextEditorParam>, IPopupWindowController<TextEditorParam>, IParamViewerController, IPopupWindowController, IController
Constructors
TextSerializedParamController(IParamViewer<TextEditorParam>, TextEditorParam)
Creates a new controller for the specified client ui implementation of the param viewer
Declaration
public TextSerializedParamController(IParamViewer<TextEditorParam> window, TextEditorParam param)
Parameters
Type | Name | Description |
---|---|---|
IParamViewer<TextEditorParam> | window | The window instance that implements the param viewer for the specified param |
TextEditorParam | param | The initial instance of the param to display |
Properties
OverrideValidation
Declaration
public bool OverrideValidation { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
Validate(TextEditorParam)
Returns if the provided parameter is valid or not
Declaration
public override Task<(bool IsValid, string ValidationFailureMessage)> Validate(TextEditorParam result)
Parameters
Type | Name | Description |
---|---|---|
TextEditorParam | result |
Returns
Type | Description |
---|---|
Task<(bool IsValid, string ValidationFailureMessage)> | True if valid, otherwise false with a corrosponding message |