Navigation
API > API/Plugins > API/Plugins/TedsTableViewer
Table Viewer where each row is represented as a tile using STileView Unlike STedsTableViewer which takes a list of columns to display the tile viewer simply uses a single widget purpose to create tiles for each row.
| Name | STedsTileViewer |
| Type | class |
| Header File | /Engine/Plugins/Experimental/EditorDataStorageFeatures/Source/TedsTableViewer/Public/Widgets/STedsTileViewer.h |
| Include Path | #include "Widgets/STedsTileViewer.h" |
Syntax
class STedsTileViewer :
public SCompoundWidget,
public UE::Editor::DataStorage::ITableViewer
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → STedsTileViewer
- FSlateControlledConstruction → SWidget → SCompoundWidget → STedsTileViewer
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/STedsTileViewer.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bAllowDragging | bool | Whether dragging is allowed. | Widgets/STedsTileViewer.h | |
| Columns | TArray< TWeakObjectPtr< const UScriptStruct > > | Optional columns to use when matching the tile widget. | Widgets/STedsTileViewer.h | |
| Model | TSharedPtr< FTedsTableViewerModel > | Our model class. | Widgets/STedsTileViewer.h | |
| OnSelectionChanged | FOnSelectionChanged | Delegate fired when the selection changes. | Widgets/STedsTileViewer.h | |
| TableRowStyle | const FTableRowStyle * | Style name to use for the rows (tiles) | Widgets/STedsTileViewer.h | |
| TedsWidget | TSharedPtr< ITedsWidget > | Wrapper Teds Widget around our contents so we can use Teds columns to specify behavior. | Widgets/STedsTileViewer.h | |
| TilePadding | FMargin | Padding between each tile. | Widgets/STedsTileViewer.h | |
| TileView | TSharedPtr< STileView< TableViewerItemPtr > > | The actual ListView widget that displays the rows. | Widgets/STedsTileViewer.h | |
| WidgetPurpose | IUiProvider::FPurposeID | The widget purpose used to generate tiles. | Widgets/STedsTileViewer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs |
Widgets/STedsTileViewer.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) | Widgets/STedsTileViewer.h | |
virtual TSharedRef< SWidget > AsWidget() |
Get the table viewer as an SWidget. | Widgets/STedsTileViewer.h | |
virtual void ClearSelection() |
Deselect all items in the table viewer. | Widgets/STedsTileViewer.h | |
virtual void ForEachSelectedRow
(
TFunctionRef< void(RowHandle)> InCallback |
Execute the given callback for each row that is selected in the table viewer. | Widgets/STedsTileViewer.h | |
virtual RowHandle GetWidgetRowHandle() |
Get the row handle for the widget row the table viewer's contents are stored in. | Widgets/STedsTileViewer.h | |
virtual bool IsSelected
(
RowHandle InRow |
Get if a specific row is selected. | Widgets/STedsTileViewer.h | |
virtual bool IsSelectedExclusively
(
RowHandle InRow |
Get if a specific row is selected exclusively. | Widgets/STedsTileViewer.h | |
virtual void ScrollIntoView
(
RowHandle Row |
Scroll the given row into view in the table viewer. | Widgets/STedsTileViewer.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/STedsTileViewer.h | |
virtual void SetSelection
(
RowHandle Row, |
Select the given row in the table viewer. | Widgets/STedsTileViewer.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddWidgetColumns() |
Widgets/STedsTileViewer.h | ||
void CreateTileWidgetConstructor() |
Widgets/STedsTileViewer.h | ||
bool IsItemVisible
(
TableViewerItemPtr InItem |
Widgets/STedsTileViewer.h | ||
TSharedRef< ITableRow > MakeTileWidget
(
TableViewerItemPtr InItem, |
Widgets/STedsTileViewer.h | ||
void OnListSelectionChanged
(
TableViewerItemPtr Item, |
Widgets/STedsTileViewer.h |