// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #include "DetailCustomizationsPrivatePCH.h" #include "DataTableCustomization.h" #include "SSearchBox.h" TSharedRef FDataTableCustomizationLayout::GetListContent() { SAssignNew(RowNameComboListView, SListView >) .ListItemsSource(&RowNames) .OnSelectionChanged(this, &FDataTableCustomizationLayout::OnSelectionChanged) .OnGenerateRow(this, &FDataTableCustomizationLayout::HandleRowNameComboBoxGenarateWidget) .SelectionMode(ESelectionMode::Single); // Ensure no filter is applied at the time the menu opens OnFilterTextChanged(FText::GetEmpty()); if (CurrentSelectedItem.IsValid()) { RowNameComboListView->SetSelection(CurrentSelectedItem); } return SNew(SVerticalBox) + SVerticalBox::Slot() .AutoHeight() [ SNew(SSearchBox) .OnTextChanged(this, &FDataTableCustomizationLayout::OnFilterTextChanged) ] + SVerticalBox::Slot() .FillHeight(1.f) [ RowNameComboListView.ToSharedRef() ]; }