Class ItemRelationListEditor
- Namespace
- Dynamicweb.Content.Items.Editors
- Assembly
- Dynamicweb.dll
Represents a Item relation list editor.
[Editor("Item relation list")]
public class ItemRelationListEditor : Editor, IListEditor, IParameterOptions
- Inheritance
-
ItemRelationListEditor
- Implements
- Inherited Members
Properties
DataType
Gets the data type for this editor.
public override Type DataType { get; }
Property Value
ItemSourse
[AddInParameter("Item source")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "required=True; none=False")]
public string ItemSourse { get; set; }
Property Value
ItemType
[AddInParameter("Item type")]
[AddInParameterEditor(typeof(ItemListParameterEditor), "required=True")]
public string ItemType { get; set; }
Property Value
Items
Gets or sets the item fields items.
public IList<ListItem> Items { get; set; }
Property Value
MaxNumber
[AddInParameter("Maximum number of items")]
[AddInParameterEditor(typeof(TextParameterEditor), "")]
public string MaxNumber { get; set; }
Property Value
MinNumber
[AddInParameter("Minumum number of items")]
[AddInParameterEditor(typeof(TextParameterEditor), "")]
public string MinNumber { get; set; }
Property Value
SortBy
[AddInParameter("Sort by")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "")]
public string SortBy { get; set; }
Property Value
SortOrder
[AddInParameter("Sort order")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "none=False")]
public string SortOrder { get; set; }
Property Value
Validators
Gets or sets the list of editor validators.
public override ValidatorCollection Validators { get; }
Property Value
Methods
GetViewModelValue(object)
Gets the value as a collection of ItemViewModel
public override object GetViewModelValue(object value)
Parameters
value
object
Returns
HasSourceType(ItemListSource)
Determines whether this ItemRelationListEditor has the given ItemRelationListEditor.ItemListSource.
public bool HasSourceType(ItemRelationListEditor.ItemListSource source)
Parameters
Returns
RenderValue(EditorRenderingContext)
Renders value.
public override void RenderValue(EditorRenderingContext context)
Parameters
context
EditorRenderingContextEditor rendering context.