Class ListViewItem<TData, TIndex>
Base class for components which can be added to GameObjects used as items in a list view
Inherited Members
Namespace: Unity.ListViewFramework
Syntax
public abstract class ListViewItem<TData, TIndex> : MonoBehaviour, 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 backing this list item
Declaration
public TData data { get; set; }
Property Value
Type | Description |
---|---|
TData |
Implements
endSettling
Called when the list item is done settling
Declaration
public Action endSettling { get; set; }
Property Value
Type | Description |
---|---|
Action |
Implements
localPosition
The local position of this list item
Declaration
public Vector3 localPosition { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Implements
localRotation
The local rotation of this list item
Declaration
public Quaternion localRotation { get; set; }
Property Value
Type | Description |
---|---|
Quaternion |
Implements
multiSelectMode
Converts the List View Item into a multiselect mode, for use with combined actions
Declaration
public virtual bool multiSelectMode { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Implements
startSettling
Called when this item starts settling Action argument is called when the list item is done settling
Declaration
public Action<Action> startSettling { get; set; }
Property Value
Type | Description |
---|---|
Action<Action> |
Implements
Methods
SetActive(Boolean)
Set the active state of this list item
Declaration
public virtual void SetActive(bool active)
Parameters
Type | Name | Description |
---|---|---|
Boolean | active | The active state to set on this list item |
Implements
SetSiblingIndex(Int32)
Set the sibling index of this list item
Declaration
public void SetSiblingIndex(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The sibling index |
Implements
Setup(TData, Boolean)
Called once when this list item becomes visible
Declaration
public virtual void Setup(TData datum, bool firstTime = false)
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 |