Class TextEditorClassic
Inherited Members
Namespace: DataWeb.Data.Controls
Assembly: DataWeb.Core.dll
Syntax
public class TextEditorClassic : Control
Constructors
TextEditorClassic(Form, IServiceProvider)
Declaration
public TextEditorClassic(Form form, IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
Form | form | |
IServiceProvider | serviceProvider |
Methods
InitAsync(CancellationToken)
Initializes the control asynchronously.
Declaration
public override Task InitAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task | A task that represents the asynchronous initialization operation. |
Overrides
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. |
Overrides
ProcessOnTranslateAsync(object, Dictionary<string, string>, Dictionary<string, object>, string, string, IUser, string, NavigationContext, CancellationToken)
Processes the control value on translation.
Declaration
public override Task<object> ProcessOnTranslateAsync(object value, Dictionary<string, string> translatedValues, Dictionary<string, object> sectionData, string culture, string sourceCulture, IUser user, string itemId = null, NavigationContext navigationContext = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
object | value | The value to process. |
Dictionary<string, string> | translatedValues | The translated values. |
Dictionary<string, object> | sectionData | The section data. |
string | culture | The culture to process. |
string | sourceCulture | The source culture. |
IUser | user | The IUser for whom to process the value. |
string | itemId | The Id of the item to which the value is associated, if applicable. |
NavigationContext | navigationContext | The NavigationContext, if applicable. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<object> | A task that represents the asynchronous operation and returns the processed value. |