BaseListViewController
Base collection list view controller. View controllers of this type are meant to take care of data virtualized by any BaseListView inheritor.
Read time 2 minutesLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: CollectionViewController
- Implements: IDisposable
public abstract class BaseListViewController : CollectionViewController, IDisposable
Properties
Property | Description |
|---|---|
| baseListView | View for this controller, cast as a BaseListView. |
Methods
Method | Description |
|---|---|
| AddItems | Adds a certain amount of items at the end of the collection. |
| ClearItems | Removes all items from the source. |
| Move | Moves an item in the source. |
| NeedsDragHandle | Returns whether this item needs a drag handle or not with the Animated drag mode. |
| RaiseItemsAdded | Invokes the _itemsAdded event. |
| RaiseItemsRemoved | Invokes the _itemsRemoved event. |
| RaiseOnSizeChanged | Invokes the _itemsSourceSizeChanged event. |
| RemoveItem | Removes an item from the source, by index. |
| RemoveItems | Removes items from the source, by indices. |
Events
Member | Description |
|---|---|
| itemsAdded | Raised when an item is added to the _itemsSource. |
| itemsRemoved | Raised when an item is removed from the _itemsSource. |
| itemsSourceSizeChanged | Raised when the _itemsSource size changes. |