Navigation
API > API/Plugins > API/Plugins/TedsTableViewer
A table viewer widget can be used to show a visual representation of data in TEDS. The rows to display can be specified using a RowQueryStack, and the columns to display are directly input into the widget Example usage:
SNew(SHierarchyViewer) .QueryStack(MakeShared
| Name | SHierarchyViewer |
| Type | class |
| Header File | /Engine/Plugins/Experimental/EditorDataStorageFeatures/Source/TedsTableViewer/Public/Widgets/STedsHierarchyViewer.h |
| Include Path | #include "Widgets/STedsHierarchyViewer.h" |
Syntax
class SHierarchyViewer :
public SCompoundWidget,
public UE::Editor::DataStorage::ITableViewer
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SHierarchyViewer
- FSlateControlledConstruction → SWidget → SCompoundWidget → SHierarchyViewer
Implements Interfaces
Derived Classes
Structs
| Name | Remarks |
|---|---|
| FArguments |
Enums
Public
| Name | Remarks |
|---|---|
| EExpansionState |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FOnSelectionChanged | TBaseDelegate_OneParam< void, RowHandle > | Delegate fired when the selection in the table viewer changes. | Widgets/STedsHierarchyViewer.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DefaultExpansionState | TAttribute< EExpansionState > | Widgets/STedsHierarchyViewer.h | ||
| EmptyRowsMessage | TAttribute< FText > | The message to show in place of the table viewer when there are no rows provided by the current query stack. | Widgets/STedsHierarchyViewer.h | |
| HeaderRowWidget | TSharedPtr< SHeaderRow > | The actual header widget. | Widgets/STedsHierarchyViewer.h | |
| HierarchyInterface | TSharedPtr< IHierarchyViewerDataInterface > | Hierarchy data that is used to extract information about the parent of a row. | Widgets/STedsHierarchyViewer.h | |
| Model | TSharedPtr< FTedsTableViewerModel > | Our model class. | Widgets/STedsHierarchyViewer.h | |
| OnSelectionChanged | FOnSelectionChanged | Delegate fired when the selection changes. | Widgets/STedsHierarchyViewer.h | |
| TedsWidget | TSharedPtr< ITedsWidget > | Wrapper Teds Widget around our contents so we can use Teds columns to specify behavior. | Widgets/STedsHierarchyViewer.h | |
| TopLevelRows | TArray< TableViewerItemPtr > | The cached list of top level rows. | Widgets/STedsHierarchyViewer.h | |
| TopLevelRowsNode | TSharedPtr< QueryStack::IRowNode > | A specialized query stack node to only contain the top level rows present in the actual query stack we are using. | Widgets/STedsHierarchyViewer.h | |
| TreeView | TSharedPtr< STedsTreeView > | The actual ListView widget that displays the rows. | Widgets/STedsHierarchyViewer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs, |
Widgets/STedsHierarchyViewer.h | ||
TSharedPtr< FTedsTableViewerModel > GetModel() |
Widgets/STedsHierarchyViewer.h |
Overridden from ITableViewer
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddCustomRowWidget
(
const TSharedRef< FTedsTableViewerColumn >& InColumn |
Add a custom per-row widget to the table viewer (that doesn't necessarily map to a TEDS column) This means a new column for the hierarchy viewer | Widgets/STedsHierarchyViewer.h | |
virtual TSharedRef< SWidget > AsWidget() |
Get the table viewer as an SWidget. | Widgets/STedsHierarchyViewer.h | |
virtual void ClearSelection() |
Deselect all items in the table viewer. | Widgets/STedsHierarchyViewer.h | |
virtual void ForEachSelectedRow
(
TFunctionRef< void(RowHandle)> InCallback |
Execute the given callback for each row that is selected in the table viewer. | Widgets/STedsHierarchyViewer.h | |
virtual RowHandle GetWidgetRowHandle() |
Get the row handle for the widget row the table viewer's contents are stored in. | Widgets/STedsHierarchyViewer.h | |
virtual bool IsSelected
(
RowHandle InRow |
Get if a specific row is selected. | Widgets/STedsHierarchyViewer.h | |
virtual bool IsSelectedExclusively
(
RowHandle InRow |
Get if a specific row is selected exclusively. | Widgets/STedsHierarchyViewer.h | |
virtual void ScrollIntoView
(
RowHandle Row |
Scroll the given row into view in the table viewer. | Widgets/STedsHierarchyViewer.h | |
virtual void SetColumns
(
const TArray< TWeakObjectPtr< const UScriptStruct > >& Columns |
Clear the current list of columns being displayed and set it to the given list. | Widgets/STedsHierarchyViewer.h | |
virtual void SetSelection
(
RowHandle Row, |
Select the given row in the table viewer. | Widgets/STedsHierarchyViewer.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddWidgetColumns() |
Widgets/STedsHierarchyViewer.h | ||
void CreateInternalWidget() |
Widgets/STedsHierarchyViewer.h | ||
TableViewerItemPtr GetParentRow
(
TableViewerItemPtr InItem |
Widgets/STedsHierarchyViewer.h | ||
bool IsItemVisible
(
TableViewerItemPtr InItem |
Widgets/STedsHierarchyViewer.h | ||
TSharedRef< ITableRow > MakeTableRowWidget
(
TableViewerItemPtr InItem, |
Widgets/STedsHierarchyViewer.h | ||
void OnListSelectionChanged
(
TableViewerItemPtr Item, |
Widgets/STedsHierarchyViewer.h | ||
void OnModelChanged() |
Widgets/STedsHierarchyViewer.h | ||
void RefreshColumnWidgets() |
Widgets/STedsHierarchyViewer.h |