Table of Contents

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
Inherited Members
Extension Methods

Properties

Explanation

public TranslatableString Explanation { get; set; }

Property Value

TranslatableString
public string? HelpLink { get; set; }

Property Value

string

Hint

public TranslatableString Hint { get; set; }

Property Value

TranslatableString

ID

public string ID { get; }

Property Value

string

InheritedValueDiffers

public bool? InheritedValueDiffers { get; }

Property Value

bool?

Label

public TranslatableString Label { get; set; }

Property Value

TranslatableString

Name

public string Name { get; set; }

Property Value

string

Readonly

public bool? Readonly { get; set; }

Property Value

bool?

ReloadOnChange

public bool ReloadOnChange { get; set; }

Property Value

bool

Required

public bool? Required { get; }

Property Value

bool?

ValidationMessage

public string? ValidationMessage { get; }

Property Value

string

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

IReadOnlyDictionary<string, string>

Validations

public ICollection<ValidationDefinition> Validations { get; }

Property Value

ICollection<ValidationDefinition>

Value

public object? Value { get; set; }

Property Value

object

ValueCanBeInherited

public bool ValueCanBeInherited { get; set; }

Property Value

bool

ValueInherited

public object? ValueInherited { get; set; }

Property Value

object

ValueIsInherited

public bool ValueIsInherited { get; }

Property Value

bool

Methods

Convert<T>(EditorBase)

public static T Convert<T>(EditorBase editor) where T : EditorBase, new()

Parameters

editor EditorBase

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

valueType Type

Returns

EditorBase

MakeEditor<T>()

public static EditorBase MakeEditor<T>()

Returns

EditorBase

Type Parameters

T
To top