Table of Contents

Class CheckboxListEditor<T>

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

Represents a checkbox list editor.

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

Type Parameters

T

Item value type.

Inheritance
CheckboxListEditor<T>
Implements
Inherited Members

Constructors

CheckboxListEditor()

Initializes a new instance of an object.

public CheckboxListEditor()

Properties

AllowOptionsSorting

Gets or sets the flag if the option might be sorted.

[AddInLabel("Allow options sorting")]
[AddInParameter("SortableOptions")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "inputClass=std editor-parameter;")]
public virtual bool AllowOptionsSorting { get; set; }

Property Value

bool

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

IconPosition

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

[AddInLabel("Options icon position")]
[AddInParameter("IconPosition")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "SortBy=Key;inputClass=std editor-parameter; Explanation=Set how many icons to show per row")]
[AddInDescription("Icon count per row")]
public virtual int IconPosition { 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

Mode

Gets the list mode.

public override ListEditorMode Mode { get; }

Property Value

ListEditorMode

Methods

GetViewModelValue(object, ItemField)

Gets the model to use when rendering list viewmodels with included options- ListViewModel

public override object GetViewModelValue(object value, ItemField field)

Parameters

value object

Value

field ItemField

Field

Returns

object
To top