Class AppTemplate_Body
Inherited Members
Namespace: DataWeb.Data.Controls
Assembly: DataWeb.Core.dll
Syntax
public class AppTemplate_Body : TextEditor
Constructors
AppTemplate_Body(Form, IServiceProvider)
Declaration
public AppTemplate_Body(Form form, IServiceProvider serviceProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| Form | form | |
| IServiceProvider | serviceProvider |
Methods
ProcessOnSaveDataAsync(object, List<ProvidedValue>, Dictionary<string, object>, IUser, string, NavigationContext, CancellationToken)
Sanitizes the control value before saving it.
Declaration
public override Task<object> ProcessOnSaveDataAsync(object value, List<Form.ProvidedValue> providedValues, Dictionary<string, object> sectionData, IUser user, string itemId = null, NavigationContext navigationContext = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| object | value | The value of the control to sanitize. |
| List<Form.ProvidedValue> | providedValues | A list of values provided for other controls on the form. |
| Dictionary<string, object> | sectionData | The section data of the form. |
| IUser | user | The IUser saving the form. |
| string | itemId | The Id of the item being edited (null if adding new). |
| NavigationContext | navigationContext | The NavigationContext of the form. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<object> | The sanitized value of the control. |