Navigation
API > API/Plugins > API/Plugins/ConcertSharedSlate
A category groups IItemSourceModel together, e.g. a category "Add actor" could have options like
- selected in outliner
- drop-down list of actors in the world
Usually a category is displayed by a combo button with DisplayInfo being applied to it. However, if Options.Num() == 1, then for better UX the button can be "inlined" with a widget visualizing that option, e.g. a button that just invokes the single option and its IObjectSourceModel::GetDisplayInfo is applied to the button.
| Name | TSourceSelectionCategory |
| Type | struct |
| Header File | /Engine/Plugins/Developer/Concert/ConcertUI/ConcertSharedSlate/Source/ConcertSharedSlate/Public/Model/Item/SourceSelectionCategory.h |
| Include Path | #include "Model/Item/SourceSelectionCategory.h" |
Syntax
template<typename TSelectionType>
struct TSourceSelectionCategory
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DisplayInfo | FBaseDisplayInfo | Data to display about this category. | Model/Item/SourceSelectionCategory.h | |
| Options | TArray< TAttribute< TSharedPtr< IItemSourceModel< TSelectionType > > > > | The options of this category. | Model/Item/SourceSelectionCategory.h | |
| SubCategories | TArray< TSourceSelectionCategory > | Sub-categories to show in the context menu. | Model/Item/SourceSelectionCategory.h |