Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    DataEditorAttribute(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 Source

    Alias

    Gets the unique alias of the editor.

    Declaration
    public string Alias { get; }
    Property Value
    Type Description
    System.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
    System.Boolean
    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
    System.Boolean
    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
    System.String
    Remarks

    Must be a valid ValueTypes value.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • DataEditorAttribute(String)
    • Properties
      • Alias
      • IsDeprecated
      • ValueEditorIsReusable
      • ValueType
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX