Last active
April 9, 2021 09:31
-
-
Save Aaron1178/d5a0296f37eebee1dbfbf8f0006fc035 to your computer and use it in GitHub Desktop.
Basic SListView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
SNew(SListView<ItemType>) | |
.ListItemsSource(ItemSource) | |
.SelectionMode(ESelectionMode::Single) | |
.OnGenerateRow(this->OnGenerateRow) | |
.HeaderRow | |
( | |
this->HeaderRow | |
) | |
} | |
TSharedRef<ITableRow> CLASS::OnGenerateListItem(ITEMTYPE* Item, const TSharedRef<STableViewBase>& OwnerTable) | |
{ | |
return SNew( STableRow<ITEMTYPE>, OwnerTable); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment