Class ColorEditor
- Namespace
- Dynamicweb.Content.Items.Editors
- Assembly
- Dynamicweb.dll
Represents a simple color picker.
[Editor("Color")]
public class ColorEditor : Editor
- Inheritance
-
ColorEditor
- Inherited Members
Properties
DataType
Gets the data type for this editor.
public override Type DataType { get; }
Property Value
Presets
[AddInParameter("Presets")]
[AddInLabel("Presets")]
[AddInParameterEditor(typeof(TextParameterEditor), "inputClass=std editor-parameter")]
public string Presets { 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 context)
Parameters
context
EditorContext- Editor context.
EndEdit()
Returns the edited value.
[Obsolete("Do not use")]
public override object EndEdit()
Returns
- object
- The edited value.
GetViewModelValue(object)
Gets the value to use when rendering items in view models -
public override object GetViewModelValue(object value)
Parameters
value
object