Search Results for

    Show / Hide Table of Contents
    View Source

    Class MultipleValueEditor

    A value editor to handle posted JSON array data and to return array data for the multiple selected CSV items.

    Inheritance
    System.Object
    DataValueEditor
    Namespace: Umbraco.Cms.Core.PropertyEditors
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class MultipleValueEditor : DataValueEditor, IDataValueEditor
    Remarks

    This is re-used by editors such as the multiple drop down list or check box list.

    Constructors

    View Source

    MultipleValueEditor(ILocalizedTextService, IShortStringHelper, IJsonSerializer, IIOHelper, DataEditorAttribute)

    Initializes a new instance of the MultipleValueEditor class.

    Declaration
    public MultipleValueEditor(ILocalizedTextService localizedTextService, IShortStringHelper shortStringHelper, IJsonSerializer jsonSerializer, IIOHelper ioHelper, DataEditorAttribute attribute)
    Parameters
    Type Name Description
    ILocalizedTextService localizedTextService
    IShortStringHelper shortStringHelper
    IJsonSerializer jsonSerializer
    IIOHelper ioHelper
    DataEditorAttribute attribute

    Methods

    View Source

    FromEditor(ContentPropertyData, Object)

    When multiple values are selected a JSON array will be posted back so we need to format for storage in the database which is a comma separated string value.

    Declaration
    public override object FromEditor(ContentPropertyData editorValue, object currentValue)
    Parameters
    Type Name Description
    ContentPropertyData editorValue
    System.Object currentValue
    Returns
    Type Description
    System.Object
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • MultipleValueEditor(ILocalizedTextService, IShortStringHelper, IJsonSerializer, IIOHelper, DataEditorAttribute)
    • Methods
      • FromEditor(ContentPropertyData, Object)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX