Interface IListViewItem<TData, TIndex> | List View Framework | 1.1.7-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Interface IListViewItem<TData, TIndex>

    Implement to define view logic for a list view item

    Inherited Members
    IListViewItem.localPosition
    IListViewItem.localRotation
    IListViewItem.startSettling
    IListViewItem.endSettling
    IListViewItem.multiSelectMode
    IListViewItem.SetActive(Boolean)
    IListViewItem.SetSiblingIndex(Int32)
    Namespace: Unity.ListViewFramework
    Syntax
    public interface IListViewItem<TData, TIndex> : IListViewItem where TData : IListViewItemData<TIndex>
    Type Parameters
    Name Description
    TData

    The type of data backing each list item

    TIndex

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

    Properties

    data

    The data for this item

    Declaration
    TData data { get; set; }
    Property Value
    Type Description
    TData

    Methods

    Setup(TData, Boolean)

    Called once when this list item becomes visible

    Declaration
    void Setup(TData datum, bool firstTime)
    Parameters
    Type Name Description
    TData datum

    The data backing this list item

    Boolean firstTime

    Whether this is the first time this item is being set up; This will be false when the item is re-used from the template pool

    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