Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


MultiColumnController

The default controller for a multi column view. Takes care of adding the MultiColumnCollectionHeader and reacting to the various callbacks.
Read time 1 minuteLast updated 6 days ago

Definition

public class MultiColumnController : IDisposable

Static Fields

Value

Description

cellLabelUssClassNameThe USS class name for default labels cells inside a multi column view.
cellUssClassNameThe USS class name for all cells inside a multi column view.
headerContainerUssClassNameThe USS class name for the header container inside a multi column view.
rowContainerUssClassNameThe USS class name for all row containers inside a multi column view.

Constructors

Methods

Method

Description

BindItemBinds a row of multiple cells to an item index.
DestroyItemDestroys a VisualElement when the view is rebuilt or cleared.
DisposeUnregisters events and removes the header from the hierarchy.
MakeItemCreates a VisualElement to use in the virtualization of the collection view. It will create a cell for every visible column.
PrepareViewInitialization step once the view is set. It will insert the multi column header in the hierarchy and register to important callbacks.
UnbindItemUnbinds the row at the item index.

Events

Member

Description

columnSortingChangedRaised when sorting changes for a column.
headerContextMenuPopulateEventRaised when a column is right-clicked to bring context menu options.