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
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
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
editorContextEditorContext
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
dropdownNamestring
Returns
GetViewModelValue(object)
Gets the value to use when rendering items in view models -
public override object GetViewModelValue(object value)
Parameters
valueobject
Returns
RenderValue(EditorRenderingContext)
Renders value.
public override void RenderValue(EditorRenderingContext context)
Parameters
contextEditorRenderingContext- Editor rendering context.