Search Results for

    Show / Hide Table of Contents
    View Source

    Class BlockEditorData<TValue, TLayout>

    Convertable block data from json

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Models.Blocks
    Assembly: Umbraco.Core.dll
    Syntax
    public class BlockEditorData<TValue, TLayout>
        where TValue : BlockValue<TLayout>, new()
        where TLayout : IBlockLayoutItem
    Type Parameters
    Name Description
    TValue
    TLayout

    Constructors

    View Source

    BlockEditorData(IEnumerable<ContentAndSettingsReference>, TValue)

    Declaration
    public BlockEditorData(IEnumerable<ContentAndSettingsReference> references, TValue blockValue)
    Parameters
    Type Name Description
    IEnumerable<ContentAndSettingsReference> references
    TValue blockValue

    Properties

    View Source

    BlockValue

    Returns the reference to the original BlockValue

    Declaration
    public TValue BlockValue { get; }
    Property Value
    Type Description
    TValue
    View Source

    Empty

    Declaration
    public static BlockEditorData<TValue, TLayout> Empty { get; }
    Property Value
    Type Description
    BlockEditorData<TValue, TLayout>
    View Source

    Layout

    Returns the layout for this specific property editor

    Declaration
    public IEnumerable<TLayout>? Layout { get; }
    Property Value
    Type Description
    System.Nullable<IEnumerable<TLayout>>
    View Source

    References

    Declaration
    public List<ContentAndSettingsReference> References { get; }
    Property Value
    Type Description
    List<ContentAndSettingsReference>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • BlockEditorData(IEnumerable<ContentAndSettingsReference>, TValue)
    • Properties
      • BlockValue
      • Empty
      • Layout
      • References
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX