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
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
STedsTableViewer() |
Widgets/STedsTableViewer.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~STedsTableViewer() |
Widgets/STedsTableViewer.h |
Structs
| Name | Remarks |
|---|---|
| FArguments |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FOnSelectionChanged | TBaseDelegate_TwoParams< void, RowHandle, ESelectInfo::Type > | Delegate fired when the selection in the table viewer changes. | Widgets/STedsTableViewer.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| InstanceCounter | int | Store the Instance count and the created name for use by the identifier. | Widgets/STedsTableViewer.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bModelInitialized | bool | If the model hasn't been initialized yet, will check during OnModelChanged and let any PostModelInitialization functions run. | Widgets/STedsTableViewer.h | |
| bPersistUIRowsOnClose | bool | If we want to persist all Table Viewer Rows and their mapping to this table ID when the viewer is destructed (keeping them around will persist its data while the editor is open) | Widgets/STedsTableViewer.h | |
| DropHandler | TUniquePtr< FWidgetDropHandler > | Drag and Drop Handler. | Widgets/STedsTableViewer.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/STedsTableViewer.h | |
| GetCustomTableViewerRowMapping | TableViewerUtils::FGetTableViewerRowMapping | Delegate fired when getting the row mapping, will use the default 'TableId.DataRowHandle' if nothing is bound. | 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 | |
| TableViewerIdentifier | FName | Unique identifier for this TableViewer. | 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 Construct
(
const FArguments& InArgs |
Widgets/STedsTableViewer.h | ||
void SetDropHandler
(
TUniquePtr< FWidgetDropHandler > InDropHandler |
Set a handler that this viewer will forward its drop operations to. | Widgets/STedsTableViewer.h |
Public Virtual
Overridden from SWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnDragEnter
(
const FGeometry& MyGeometry, |
Drag and Drop handlers. | Widgets/STedsTableViewer.h | |
virtual void OnDragLeave
(
const FDragDropEvent& DragDropEvent |
Widgets/STedsTableViewer.h | ||
virtual FReply OnDragOver
(
const FGeometry& MyGeometry, |
Widgets/STedsTableViewer.h | ||
virtual FReply OnDrop
(
const FGeometry& MyGeometry, |
Widgets/STedsTableViewer.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 table viewer | Widgets/STedsTableViewer.h | |
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 SetColumns
(
const TArray< TWeakObjectPtr< const UScriptStruct > >& InColumns |
Clear the current list of columns being displayed and set it to the given list. | Widgets/STedsTableViewer.h | |
virtual void SetQueryStack
(
TSharedPtr< QueryStack::IRowNode > InRowQueryStack |
Clear the current QueryStack being displayed, set it to the given node, and recreate the sorting nodes. | Widgets/STedsTableViewer.h | |
virtual void SetSelection
(
RowHandle Row, |
Select the given row in the table viewer. | Widgets/STedsTableViewer.h | |
virtual void SetTableViewerIdentifier
(
const FName& NewIdentifier |
Sets the Table Identifier (Can be used in case data is dynamic and created post widget init) | Widgets/STedsTableViewer.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
RowHandle AddOrFindTableViewerUIRow
(
const TableViewerItemPtr InItem |
Widgets/STedsTableViewer.h | ||
void AddWidgetColumns() |
Widgets/STedsTableViewer.h | ||
void CreateInternalWidget() |
Widgets/STedsTableViewer.h | ||
| Widgets/STedsTableViewer.h | |||
void InitializeAllTableViewerUIRows() |
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 OnModelChanged() |
Widgets/STedsTableViewer.h | ||
void RefreshColumnWidgets() |
Widgets/STedsTableViewer.h |