Class DataEditorAttribute
Marks a class that represents a data editor.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.PropertyEditors
Assembly: Umbraco.Core.dll
Syntax
public sealed class DataEditorAttribute : Attribute
Constructors
View SourceDataEditorAttribute(String)
Initializes a new instance of the DataEditorAttribute class for a property editor.
Declaration
public DataEditorAttribute(string alias)
Parameters
Type | Name | Description |
---|---|---|
System.String | alias | The unique identifier of the editor. |
Properties
View SourceAlias
Gets the unique alias of the editor.
Declaration
public string Alias { get; }
Property Value
Type | Description |
---|---|
System.String |
IsDeprecated
Gets or sets a value indicating whether the value editor is deprecated.
Declaration
public bool IsDeprecated { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
A deprecated editor is still supported but not proposed in the UI.
ValueEditorIsReusable
Gets or sets a value indicating whether the value editor can be reused (cached).
Declaration
public bool ValueEditorIsReusable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
While most value editors can be reused, complex editors (e.g. block based editors) might not be applicable for reuse.
ValueType
Gets or sets the type of the edited value.
Declaration
public string ValueType { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Must be a valid ValueTypes value.