Table of Contents

Class ColorSwatchEditor

Namespace
Dynamicweb.Content.Items.Editors
Assembly
Dynamicweb.dll
Represents a Color swatch editor.
[Editor("Color swatch")]
public class ColorSwatchEditor : Editor, IDropDownOptions
Inheritance
ColorSwatchEditor
Implements
Inherited Members

Properties

DataType

Gets the data type for this editor.
public override Type DataType { get; }

Property Value

Type

EditColorSwatch

Gets or sets the value which defines visibility of Edit color swatch button.
[AddInLabel("Edit color swatch")]
[AddInParameter("EditColorSwatch")]
[AddInParameterEditor(typeof(RadioParameterEditor), "inputClass=std editor-parameter")]
public virtual int EditColorSwatch { get; set; }

Property Value

int

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 editorContext)

Parameters

editorContext 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

Hashtable

GetViewModelValue(object)

Gets the value to use when rendering items in view models -
public override object GetViewModelValue(object value)

Parameters

value object

Returns

object

RenderValue(EditorRenderingContext)

Renders value.
public override void RenderValue(EditorRenderingContext context)

Parameters

context EditorRenderingContext
Editor rendering context.
To top