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
- See Also
DataType
Gets the data type for this editor.
public abstract Type DataType { get; }
Property Value
- See Also
Disabled
Gets or sets is editor disabled.
public bool Disabled { get; set; }
Property Value
- See Also
HttpContext
Gets the HTTP context associated with this editor.
public IContext HttpContext { get; }
Property Value
- See Also
Key
Gets or sets the key that uniquely identifies this editor instance.
public string Key { get; set; }
Property Value
- See Also
Validators
Gets or sets the list of editor validators.
public virtual ValidatorCollection Validators { get; }
Property Value
- See Also
ValueConverter
Gets the value converter for converting values from and to string representation.
protected virtual ValueConverter ValueConverter { get; }
Property Value
- 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
- 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
Returns
- See Also
HasValue()
Tell if this editor returns a value
[Obsolete("Do not use")]
public virtual bool HasValue()
Returns
- 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
- See Also