Class UserEditor
- Namespace
- Dynamicweb.Content.Items.Editors
- Assembly
- Dynamicweb.dll
Represents a User editor.
[Editor("User")]
public class UserEditor : Editor, IDropDownOptions
- Inheritance
-
UserEditor
- Implements
- Inherited Members
Properties
DataType
Gets the data type for this editor.
public override Type DataType { get; }
Property Value
ShowTypes
Gets or sets the value which defines user objects types to show.
[AddInLabel("Show types")]
[AddInParameter("ShowTypes")]
[AddInParameterEditor(typeof(CheckListParameterEditor), "inputClass=std editor-parameter;width=166;separatelines=true;defaultvalue=2;")]
[AddInDescription("User object types to use in field")]
public virtual string ShowTypes { 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
context
EditorContext- Editor context.
BeginEditFrontend(EditorContext)
Disable editing in fronted
[Obsolete("Do not use")]
public override void BeginEditFrontend(EditorContext context)
Parameters
context
EditorContext
EndEdit()
Returns the edited value.
[Obsolete("Do not use")]
public override object EndEdit()
Returns
- object
- The edited value.
GetOptions(string)
Get options for editors with multiple values
public Hashtable GetOptions(string dropdownName)
Parameters
dropdownName
string
Returns
GetViewModelValue(object)
Gets the value as a collection of UserViewModel
public override object GetViewModelValue(object value)
Parameters
value
object
Returns
HasValue()
Tell if this editor returns a value
[Obsolete("Do not use")]
public override bool HasValue()
Returns
RenderItemListValue(string)
Render of the Item List value.
[Obsolete("Do not use")]
public override Editor.RenderedItemListResult RenderItemListValue(string value)
Parameters
value
string- Value
Returns
- Editor.RenderedItemListResult
- Rendered Value
RenderValue(EditorRenderingContext)
Renders value.
public override void RenderValue(EditorRenderingContext context)
Parameters
context
EditorRenderingContext- Editor rendering context.