Navigation
API > API/Runtime > API/Runtime/TypedElementFramework > API/Runtime/TypedElementFramework/FAttributeBinder
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TAttribute< AttributeType > BindColumnData
(
const TWeakObjectPtr< const UScriptStruct >& InColumnType, |
Bind a whole TEDS column to a slate attribute (instead of a single member variable) using the column's typeinfo. | Elements/Framework/TypedElementAttributeBinding.h | |
auto BindColumnData
(
const TWeakObjectPtr< const UScriptStruct >& InColumnType, |
Overload for the BindColumnData to accept lambdas instead of TFunctions | Elements/Framework/TypedElementAttributeBinding.h |
BindColumnData(const TWeakObjectPtr< const UScriptStruct > &, const TFunction< AttributeType(const TWeakObjectPtr< const UScriptStruct > &, const void *)> &)
Description
Bind a whole TEDS column to a slate attribute (instead of a single member variable) using the column's typeinfo.
Example: const TAttribute TestIntAttribute(Binder.BindColumnData(FTestColumnInt::StaticStruct(), { return static_cast
| Name | BindColumnData |
| Type | function |
| Header File | /Engine/Source/Runtime/TypedElementFramework/Public/Elements/Framework/TypedElementAttributeBinding.h |
| Include Path | #include "Elements/Framework/TypedElementAttributeBinding.h" |
| Source | /Engine/Source/Runtime/TypedElementFramework/Public/Elements/Framework/TypedElementAttributeBinding.inl |
template<typename AttributeType>
TAttribute < AttributeType > BindColumnData
(
const TWeakObjectPtr < const UScriptStruct > & InColumnType,
const TFunction < AttributeType< const UScriptStruct > &, const void *)> & InConverter
)
A TAttribute bound to the row, column pair specified
Parameters
| Name | Remarks |
|---|---|
| InColumnType | The typeinfo of the column (e.g FTestIntColumn::StaticStruct) |
| InConverter | Conversion function to convert from const void* ColumnData -> AttributeType |
BindColumnData(const TWeakObjectPtr< const UScriptStruct > &, FunctionType &&)
Description
Overload for the BindColumnData to accept lambdas instead of TFunctions
| Name | BindColumnData |
| Type | function |
| Header File | /Engine/Source/Runtime/TypedElementFramework/Public/Elements/Framework/TypedElementAttributeBinding.h |
| Include Path | #include "Elements/Framework/TypedElementAttributeBinding.h" |
| Source | /Engine/Source/Runtime/TypedElementFramework/Public/Elements/Framework/TypedElementAttributeBinding.inl |
template<typename FunctionType>
auto BindColumnData
(
const TWeakObjectPtr < const UScriptStruct > & InColumnType,
FunctionType && InConverter
)
A TAttribute bound to the row, column pair specified
Parameters
| Name | Remarks |
|---|---|
| InConverter | Conversion function to convert from const void* ColumnData -> AttributeType |