Table of Contents

Class DropDownListEditor<T>

Namespace
Dynamicweb.Content.Items.Editors
Assembly
Dynamicweb.dll

Represents a dropdown list editor.

[Group("Lists")]
[Editor("Dropdown list")]
public class DropDownListEditor<T> : ListEditor<T>, IListEditor, IListTemplate, IListBaseEditor, IParameterOptions, IListEditorPresentation

Type Parameters

T

Item value type.

Inheritance
DropDownListEditor<T>
Implements
Inherited Members

Constructors

DropDownListEditor()

Initializes a new instance of an object.

public DropDownListEditor()

Properties

IconMaxHeight

Gets or sets the value of icon max height.

[AddInLabel("Options icon max height")]
[AddInParameter("IconMaxHeight")]
[AddInParameterEditor(typeof(IntegerNumberParameterEditor), "inputClass=std editor-parameter;allowNegativeValues=false")]
[AddInDescription("Icon max height")]
public virtual int IconMaxHeight { get; set; }

Property Value

int

IconMaxWidth

Gets or sets the value of icon max width.

[AddInLabel("Options icon max width")]
[AddInParameter("IconMaxWidth")]
[AddInParameterEditor(typeof(IntegerNumberParameterEditor), "inputClass=std editor-parameter;allowNegativeValues=false")]
[AddInDescription("Icon max width")]
public virtual int IconMaxWidth { get; set; }

Property Value

int

ItemTemplate

Gets or sets the item template

[AddInLabel("Options template")]
[AddInParameter("ItemTemplate")]
[AddInParameterEditor(typeof(TemplateParameterEditor), "folder=Templates/Items;FullPath=false;inputClass=std editor-parameter;")]
public override string ItemTemplate { get; set; }

Property Value

string

LabelPosition

Gets or sets the value which defines the option label position.

[AddInLabel("Options label position")]
[AddInParameter("LabelPosition")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "inputClass=std editor-parameter")]
[AddInDescription("Label position relatively icon")]
public virtual int LabelPosition { get; set; }

Property Value

int

LabelWidth

Gets or sets the value of label width.

[AddInLabel("Options label width")]
[AddInParameter("LabelWidth")]
[AddInParameterEditor(typeof(IntegerNumberParameterEditor), "inputClass=std editor-parameter;allowNegativeValues=false")]
[AddInDescription("Label width")]
public virtual int LabelWidth { get; set; }

Property Value

int

Mode

Gets the list mode.

public override ListEditorMode Mode { get; }

Property Value

ListEditorMode

RemoveNothingSelected

Gets or sets the flag to remove 'nothing selected' option

[AddInLabel("Do not include 'nothing selected' option")]
[AddInParameter("RemoveNothingSelected")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "inputClass=std editor-parameter; Explanation=If checked the first list option is preselected instead of the default 'nothing selected'-value")]
public virtual bool RemoveNothingSelected { get; set; }

Property Value

bool
To top