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
EnablePresets
[AddInParameter("Enable presets")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "inputClass=std editor-parameter")]
public bool EnablePresets { get; set; }
Property Value
IsTab
public virtual bool IsTab { get; set; }
Property Value
ItemType
[AddInParameter("Item type")]
[AddInParameterEditor(typeof(ItemListParameterEditor), "inputClass=std editor-parameter; StructureType=All; AllowEditParameterOptions=False")]
public string ItemType { get; set; }
Property Value
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
contextEditorContext- 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
valueobject
Returns
RenderValue(EditorRenderingContext)
Renders value.
public override void RenderValue(EditorRenderingContext context)
Parameters
contextEditorRenderingContext- Editor rendering context.