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, IParameterOptions
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

GetViewModelValue(object)

Gets the value to use when rendering items in view models - GetValue(string)

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