Class NestedListViewItemData<TChild, TIndex> | List View Framework | 1.1.7-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class NestedListViewItemData<TChild, TIndex>

    Base class for nested list view item data

    Inheritance
    Object
    NestedListViewItemData<TChild, TIndex>
    Namespace: Unity.ListViewFramework
    Syntax
    public abstract class NestedListViewItemData<TChild, TIndex> : INestedListViewItemData<TChild, TIndex>, IListViewItemData<TIndex>
    Type Parameters
    Name Description
    TChild

    The type of data in the list of children

    TIndex

    The type which is used as a unique index to map data to list items

    Fields

    m_Children

    The list of children

    Declaration
    protected List<TChild> m_Children
    Field Value
    Type Description
    List<TChild>

    Properties

    children

    The list of children

    Declaration
    public List<TChild> children { get; set; }
    Property Value
    Type Description
    List<TChild>
    Implements
    INestedListViewItemData<TChild, TIndex>.children

    index

    The index for this data

    Declaration
    public abstract TIndex index { get; }
    Property Value
    Type Description
    TIndex
    Implements
    IListViewItemData<TIndex>.index

    selected

    True if the item is currently selected. Used by multiselect to track items.

    Declaration
    public virtual bool selected { get; set; }
    Property Value
    Type Description
    Boolean
    Implements
    IListViewItemData<TIndex>.selected

    template

    The template for this data

    Declaration
    public abstract string template { get; }
    Property Value
    Type Description
    String
    Implements
    IListViewItemData<TIndex>.template

    Events

    childrenChanging

    Invoked when setting the list of children

    Declaration
    public event Action<INestedListViewItemData<TChild, TIndex>, List<TChild>> childrenChanging
    Event Type
    Type Description
    Action<INestedListViewItemData<TChild, TIndex>, List<TChild>>
    Implements
    INestedListViewItemData<TChild, TIndex>.childrenChanging
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023