Class EditorBase
- Namespace
- Dynamicweb.CoreUI.Editors
- Assembly
- Dynamicweb.CoreUI.dll
Base class for all editors taking input from the UI To be added to a column
public abstract class EditorBase : UiComponentBase
- Inheritance
-
EditorBase
- Derived
-
EditorBase<T>
- Inherited Members
- Extension Methods
Properties
Explanation
public TranslatableString Explanation { get; set; }
Property Value
HelpLink
public string? HelpLink { get; set; }
Property Value
Hint
public TranslatableString Hint { get; set; }
Property Value
ID
public string ID { get; }
Property Value
InheritedValueDiffers
public bool? InheritedValueDiffers { get; }
Property Value
- bool?
Label
public TranslatableString Label { get; set; }
Property Value
Name
public string Name { get; set; }
Property Value
Readonly
public bool? Readonly { get; set; }
Property Value
- bool?
ReloadOnChange
public bool ReloadOnChange { get; set; }
Property Value
Required
public bool? Required { get; }
Property Value
- bool?
ValidationMessage
public string? ValidationMessage { get; }
Property Value
ValidationMessagesByReason
Each attached validation's message keyed by the native HTML ValidityState reason it corresponds to. Lets the client pick the correct message against the browser's live validity state, since the value the user is currently typing is not reflected in Value until the next round trip. Validations with no native reason (ValidityStateReason is null) are excluded.
public IReadOnlyDictionary<string, string> ValidationMessagesByReason { get; }
Property Value
Validations
public ICollection<ValidationDefinition> Validations { get; }
Property Value
Value
public object? Value { get; set; }
Property Value
ValueCanBeInherited
public bool ValueCanBeInherited { get; set; }
Property Value
ValueInherited
public object? ValueInherited { get; set; }
Property Value
ValueIsInherited
public bool ValueIsInherited { get; }
Property Value
Methods
Convert<T>(EditorBase)
public static T Convert<T>(EditorBase editor) where T : EditorBase, new()
Parameters
editorEditorBase
Returns
- T
Type Parameters
T
FindEditor<T>()
public static EditorBase<T> FindEditor<T>()
Returns
- EditorBase<T>
Type Parameters
T
MakeEditor(Type)
public static EditorBase MakeEditor(Type valueType)
Parameters
valueTypeType
Returns
MakeEditor<T>()
public static EditorBase MakeEditor<T>()
Returns
Type Parameters
T