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(STedsTableViewer) .QueryStack(MakeShared
| Name | STedsTableViewer |
| Type | class |
| Header File | /Engine/Plugins/Experimental/EditorDataStorageFeatures/Source/TedsTableViewer/Public/Widgets/STedsTableViewer.h |
| Include Path | #include "Widgets/STedsTableViewer.h" |
Syntax
class STedsTableViewer :
public SCompoundWidget,
public UE::Editor::DataStorage::ITableViewer
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → STedsTableViewer
- FSlateControlledConstruction → SWidget → SCompoundWidget → STedsTableViewer
Implements Interfaces
Structs
| Name | Remarks |
|---|---|
| FArguments |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FOnSelectionChanged | TBaseDelegate_OneParam< void, RowHandle > | Delegate fired when the selection in the table viewer changes. | Widgets/STedsTableViewer.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| 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/STedsTableViewer.h | |
| HeaderRowWidget | TSharedPtr< SHeaderRow > | The actual header widget. | Widgets/STedsTableViewer.h | |
| ItemHeight | TAttribute< float > | The actual height of each item. | Widgets/STedsTableViewer.h | |
| ItemPadding | TAttribute< FMargin > | The actual padding between each item. | Widgets/STedsTableViewer.h | |
| ListView | TSharedPtr< SListView< TableViewerItemPtr > > | The actual ListView widget that displays the rows. | Widgets/STedsTableViewer.h | |
| Model | TSharedPtr< FTedsTableViewerModel > | Our model class. | Widgets/STedsTableViewer.h | |
| OnSelectionChanged | FOnSelectionChanged | Delegate fired when the selection changes. | Widgets/STedsTableViewer.h | |
| TedsWidget | TSharedPtr< ITedsWidget > | Wrapper Teds Widget around our contents so we can use Teds columns to specify behavior. | Widgets/STedsTableViewer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddCustomColumn
(
const TSharedRef< FTedsTableViewerColumn >& InColumn |
Add a custom column to display in the table viewer, that doesn't necessarily map to a Teds column. | Widgets/STedsTableViewer.h | |
void Construct
(
const FArguments& InArgs |
Widgets/STedsTableViewer.h | ||
void SetColumns
(
const TArray< TWeakObjectPtr< const UScriptStruct > >& Columns |
Clear the current list of columns being displayed and set it to the given list. | Widgets/STedsTableViewer.h |
Overridden from ITableViewer
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TSharedRef< SWidget > AsWidget() |
Get the table viewer as an SWidget. | Widgets/STedsTableViewer.h | |
virtual void ClearSelection() |
Deselect all items in the table viewer. | Widgets/STedsTableViewer.h | |
virtual void ForEachSelectedRow
(
TFunctionRef< void(RowHandle)> InCallback |
Execute the given callback for each row that is selected in the table viewer. | Widgets/STedsTableViewer.h | |
virtual RowHandle GetWidgetRowHandle() |
Get the row handle for the widget row the table viewer's contents are stored in. | Widgets/STedsTableViewer.h | |
virtual bool IsSelected
(
RowHandle InRow |
Get if a specific row is selected. | Widgets/STedsTableViewer.h | |
virtual bool IsSelectedExclusively
(
RowHandle InRow |
Get if a specific row is selected exclusively. | Widgets/STedsTableViewer.h | |
virtual void ScrollIntoView
(
RowHandle Row |
Scroll the given row into view in the table viewer. | Widgets/STedsTableViewer.h | |
virtual void SetSelection
(
RowHandle Row, |
Select the given row in the table viewer. | Widgets/STedsTableViewer.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddWidgetColumns() |
Widgets/STedsTableViewer.h | ||
void CreateInternalWidget() |
Widgets/STedsTableViewer.h | ||
bool IsItemVisible
(
TableViewerItemPtr InItem |
Widgets/STedsTableViewer.h | ||
TSharedRef< ITableRow > MakeTableRowWidget
(
TableViewerItemPtr InItem, |
Widgets/STedsTableViewer.h | ||
void OnListSelectionChanged
(
TableViewerItemPtr Item, |
Widgets/STedsTableViewer.h | ||
void RefreshColumnWidgets() |
Widgets/STedsTableViewer.h |