MultiColumnListView
A list view with multi column support. For more information, refer to MultiColumnListView.
Read time 10 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: BaseListView
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IBindable, ISerializationCallbackReceiver
public class MultiColumnListView : BaseListView, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IBindable, ISerializationCallbackReceiver
Constructors
Constructor | Description |
|---|---|
| MultiColumnListView() | Initializes a MultiColumnListView with an empty header. |
| MultiColumnListView(UnityEngine.UIElements.Columns) | Initializes a MultiColumnListView with a list of column definitions. |
Properties
Property | Description |
|---|---|
| columns | The collection of columns for the multi-column header. |
| sortColumnDescriptions | The collection of sorted columns by default. |
| sortedColumns | Contains information about which columns are currently being sorted. |
| sortingMode | Indicates how to sort columns. To enable sorting, set it to ColumnSortingMode.Default or ColumnSortingMode.Custom. The |
| viewController | The view controller for this view, cast as a MultiColumnListViewController. |
Methods
Method | Description |
|---|---|
| SetViewController | Assigns the view controller for this view and registers all events required for it to function properly. |
Events
Member | Description |
|---|---|
| columnSortingChanged | If a column is clicked to change sorting, this event is raised to allow users to sort the list view items. For a default implementation, set MultiColumnListView.sortingMode to ColumnSortingMode.Default. |
| headerContextMenuPopulateEvent | If a column is right-clicked to show context menu options, this event is raised to allow users to change the available options. |