Skip to content

Instantly share code, notes, and snippets.

@Aaron1178
Last active April 9, 2021 09:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aaron1178/d5a0296f37eebee1dbfbf8f0006fc035 to your computer and use it in GitHub Desktop.
Save Aaron1178/d5a0296f37eebee1dbfbf8f0006fc035 to your computer and use it in GitHub Desktop.
Basic SListView
{
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