How to make sDetailCategoryTableRow? (Slate)

Hi! How to make sliding tab like on screen below? Cant fint any documentation.

47010-gsdf.png

Whent it clicked it sliding down.

1 Like

You probably do not want to make an SDetailCategoryTableRow. That widget is something built specifically for the details panel. It does more than just expand and collapse its content.

What you are probably looking for is SExpandableArea. If you search for that widget in the code, you will find examples of it being used. The general usage pattern is something like this:

SNew(SExpandableArea)
.InitiallyCollapsed(false)
.BorderImage( FEditorStyle::GetBrush( "ToolBar.Background" ) )
.Padding(8.0f)
.HeaderContent()
[
  SNew( STextBlock )
  .Text( NSLOCTEXT("MyWidget","CategoryHeader", "My Awesome Category") )
]
.BodyContent()
[
  // ... Whatever content widgets ...
]

You will need to include #include "SExpandableArea.h" at the top of your cpp file.

Hope this helps.

1 Like

Yes, thanks a lot!