Search Results for

    Show / Hide Table of Contents
    View Source

    Class DataEditorAttribute

    Marks a class that represents a data editor.

    Inheritance
    object
    Attribute
    Namespace: Umbraco.Cms.Core.PropertyEditors
    Assembly: Umbraco.Core.dll
    Syntax
    [AttributeUsage(AttributeTargets.Class)]
    public sealed class DataEditorAttribute : Attribute

    Constructors

    View Source

    DataEditorAttribute(string)

    Initializes a new instance of the DataEditorAttribute class for a property editor.

    Declaration
    public DataEditorAttribute(string alias)
    Parameters
    Type Name Description
    string alias

    The unique identifier of the editor.

    Properties

    View Source

    Alias

    Gets the unique alias of the editor.

    Declaration
    public string Alias { get; }
    Property Value
    Type Description
    string
    View Source

    IsDeprecated

    Gets or sets a value indicating whether the value editor is deprecated.

    Declaration
    public bool IsDeprecated { get; set; }
    Property Value
    Type Description
    bool
    Remarks

    A deprecated editor is still supported but not proposed in the UI.

    View Source

    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
    bool
    Remarks

    While most value editors can be reused, complex editors (e.g. block based editors) might not be applicable for reuse.

    View Source

    ValueType

    Gets or sets the type of the edited value.

    Declaration
    public string ValueType { get; set; }
    Property Value
    Type Description
    string
    Remarks

    Must be a valid ValueTypes value.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX