Table of Contents

Class ItemTypeEditor

Namespace
Dynamicweb.Content.Items.Editors
Assembly
Dynamicweb.dll
Represents a file editor.
[Editor("Item type")]
public class ItemTypeEditor : Editor
Inheritance
ItemTypeEditor
Inherited Members

Properties

DataType

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

Property Value

Type

EnablePresets

[AddInParameter("Enable presets")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "inputClass=std editor-parameter")]
public bool EnablePresets { get; set; }

Property Value

bool

IsTab

public virtual bool IsTab { get; set; }

Property Value

bool

ItemType

[AddInParameter("Item type")]
[AddInParameterEditor(typeof(ItemListParameterEditor), "inputClass=std editor-parameter; StructureType=All; AllowEditParameterOptions=False")]
public string ItemType { get; set; }

Property Value

string

Methods

BeginEdit(EditorContext)

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

Parameters

context EditorContext
Editor context.

EndEdit()

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

Returns

object
The edited value.

GetViewModelValue(object)

Gets the value as an instance of ItemViewModel
public override object GetViewModelValue(object value)

Parameters

value object

Returns

object

RenderValue(EditorRenderingContext)

Renders value.
public override void RenderValue(EditorRenderingContext context)

Parameters

context EditorRenderingContext
Editor rendering context.
To top