MultiColumnController

class in UnityEngine.UIElements

/

Implemented in:UnityEngine.UIElementsModule

Description

The default controller for a multi column view. Takes care of adding the MultiColumnCollectionHeader and reacting to the various callbacks.

Static Properties

cellLabelUssClassName The USS class name for default labels cells inside a multi column view.
cellUssClassName The USS class name for all cells inside a multi column view.
headerContainerUssClassName The USS class name for the header container inside a multi column view.
rowContainerUssClassName The USS class name for all row containers inside a multi column view.

Constructors

MultiColumnController Constructor. It will create the MultiColumnCollectionHeader to use for the view.

Public Methods

BindItem Binds a row of multiple cells to an item index.
DestroyItem Destroys a VisualElement when the view is rebuilt or cleared.
Dispose Unregisters events and removes the header from the hierarchy.
MakeItem Creates a VisualElement to use in the virtualization of the collection view. It will create a cell for every visible column.
PrepareView Initialization step once the view is set. It will insert the multi column header in the hierarchy and register to important callbacks.
UnbindItem Unbinds the row at the item index.

Events

columnSortingChanged Raised when sorting changes for a column.
headerContextMenuPopulateEvent Raised when a column is right-clicked to bring context menu options.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961