Table of Contents

Class Editor

Namespace
Dynamicweb.Content.Items.Editors
Assembly
Dynamicweb.dll
Represents an item field editor.
public abstract class Editor : ConfigurableAddIn
Inheritance
Editor
Inherited Members

Constructors

Editor()

Initializes a new instance of an object.
protected Editor()
See Also

Properties

CssClass

Gets or sets the additional css class.
[Obsolete("Do not use")]
public string CssClass { get; set; }

Property Value

string
See Also

DataType

Gets the data type for this editor.
public abstract Type DataType { get; }

Property Value

Type
See Also

Disabled

Gets or sets is editor disabled.
public bool Disabled { get; set; }

Property Value

bool
See Also

HttpContext

Gets the HTTP context associated with this editor.
public IContext HttpContext { get; }

Property Value

IContext
See Also

Key

Gets or sets the key that uniquely identifies this editor instance.
public string Key { get; set; }

Property Value

string
See Also

Validators

Gets or sets the list of editor validators.
public virtual ValidatorCollection Validators { get; }

Property Value

ValidatorCollection
See Also

ValueConverter

Gets the value converter for converting values from and to string representation.
protected virtual ValueConverter ValueConverter { get; }

Property Value

ValueConverter
See Also

Methods

BeginEdit(EditorContext)

Enables the editor to populate its UI to the client and initiate the editing process.
[Obsolete("Do not use")]
public virtual void BeginEdit(EditorContext context)

Parameters

context EditorContext
Editor context.
See Also

BeginEditFrontend(EditorContext)

Enables the editor to populate its UI to the client and initiate the editing process (for frontend).
[Obsolete("Do not use")]
public virtual void BeginEditFrontend(EditorContext context)

Parameters

context EditorContext
Editor context.
See Also

EndEdit()

Returns the edited value.
[Obsolete("Do not use")]
public virtual object EndEdit()

Returns

object
The edited value.
See Also

EndEditFrontend()

Returns the edited value (for frontend).
[Obsolete("Do not use")]
public virtual object EndEditFrontend()

Returns

object
The edited value.
See Also

GetEditorType(ItemField)

Returns type of item editor
public static Type GetEditorType(ItemField field)

Parameters

field ItemField
Item field with editor

Returns

Type
Type of item editor

Remarks

Default returns TextEditor
See Also

GetViewModelValue(object)

Gets the value to use when rendering items in view models -
public virtual object GetViewModelValue(object value)

Parameters

value object

Returns

object
See Also

GetViewModelValue(object, ItemField)

Gets the value to use when rendering items in view models -
public virtual object GetViewModelValue(object value, ItemField field)

Parameters

value object
field ItemField

Returns

object
See Also

HasValue()

Tell if this editor returns a value
[Obsolete("Do not use")]
public virtual bool HasValue()

Returns

bool
See Also

NewKey()

Returns a new unique key that can be used to identify editor instance.
public static string NewKey()

Returns

string
A new unique key that can be used to identify editor instance.
See Also

RenderItemListValue(string)

Render of the Item List value.
[Obsolete("Do not use")]
public virtual Editor.RenderedItemListResult RenderItemListValue(string value)

Parameters

value string
Value

Returns

Editor.RenderedItemListResult
Rendered Value
See Also

RenderValue(EditorRenderingContext)

Renders value.
public virtual void RenderValue(EditorRenderingContext context)

Parameters

context EditorRenderingContext
Editor rendering context.
See Also

StringifyValue(object)

Returns the string representation of value.
public virtual string StringifyValue(object value)

Parameters

value object
Object

Returns

string
See Also

See Also

To top