Class NestedListViewItemData<TChild, TIndex>
Base class for nested list view item data
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
index
The index for this data
Declaration
public abstract TIndex index { get; }
Property Value
Type | Description |
---|---|
TIndex |
Implements
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
template
The template for this data
Declaration
public abstract string template { get; }
Property Value
Type | Description |
---|---|
String |
Implements
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>> |