Navigation
API > API/Runtime > API/Runtime/TypedElementFramework
Builder class that can be used as a shorthand to bind data inside a TEDS row, column pair to a TAttribute so the attribute updates if the data in the column is changed.
Usage Example:
FAttributeBinder Binder(RowHandle); TAttribute
| Name | FAttributeBinder |
| Type | class |
| Header File | /Engine/Source/Runtime/TypedElementFramework/Public/Elements/Framework/TypedElementAttributeBinding.h |
| Include Path | #include "Elements/Framework/TypedElementAttributeBinding.h" |
Syntax
class FAttributeBinder
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAttributeBinder
(
RowHandle InTargetRow |
Create an attribute binder for a given row. | Elements/Framework/TypedElementAttributeBinding.h | |
FAttributeBinder
(
RowHandle InTargetRow, |
Create an attribute binder for a given row. | Elements/Framework/TypedElementAttributeBinding.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DataStorage | ICoreProvider * | A ptr to the data storage for quick access. | Elements/Framework/TypedElementAttributeBinding.h | |
| TargetRow | RowHandle | The target row for this binder. | Elements/Framework/TypedElementAttributeBinding.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TAttribute< AttributeType > BindColumn
(
TFunction< AttributeType(const ColumnType&)> InConverter |
Bind a whole TEDS column to a slate attribute (instead of a single member variable). | Elements/Framework/TypedElementAttributeBinding.h | |
auto BindColumn
(
FunctionType&& InConverter |
Overload for the BindColumn to accept lambdas instead of TFunctions | Elements/Framework/TypedElementAttributeBinding.h | |
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 | |
TAttribute< AttributeType > BindData
(
const FName& InIdentifier, |
Bind a specific data member inside a TEDS column to an attribute of a different type than the data by providing a conversion function NOTE: the default value is not the actual attribute type but rather the data type in the column and it gets passed to the conversion function | Elements/Framework/TypedElementAttributeBinding.h | |
TAttribute< AttributeType > BindData
(
AttributeType ColumnType::* InVariable, |
Bind a specific data member inside a TEDS column to an attribute of the same type as the data | Elements/Framework/TypedElementAttributeBinding.h | |
TAttribute< AttributeType > BindData
(
const FName& InIdentifier, |
Bind a specific data member inside a TEDS column to an attribute of the same type as the data | Elements/Framework/TypedElementAttributeBinding.h | |
TAttribute< AttributeType > BindData
(
DataType ColumnType::* InVariable, |
Bind a specific data member inside a TEDS column to an attribute of a different type than the data by providing a conversion function NOTE: the default value is not the actual attribute type but rather the data type in the column and it gets passed to the conversion function | Elements/Framework/TypedElementAttributeBinding.h | |
auto BindData
(
DataType ColumnType::* InVariable, |
Overload for the conversion binder to accept lambdas instead of TFunctions | Elements/Framework/TypedElementAttributeBinding.h | |
| Overload for the conversion binder to accept lambdas instead of TFunctions | Elements/Framework/TypedElementAttributeBinding.h | ||
| Bind a delegate inside a TEDS column to a SLATE_EVENT macro on a widget | Elements/Framework/TypedElementAttributeBinding.h | ||
| Elements/Framework/TypedElementAttributeBinding.h | |||
TAttribute< FText > BindText
(
const FName& InIdentifier, |
Elements/Framework/TypedElementAttributeBinding.h | ||
TAttribute< FText > BindText
(
FString ColumnType::* InFStringVariable |
Directly bind an FString member in a TEDS column to an FText attribute as a shortcut | Elements/Framework/TypedElementAttributeBinding.h | |
TAttribute< FText > BindText
(
FName ColumnType::* InFNameVariable |
Directly bind an FName member in a TEDS column to an FText attribute as a shortcut | Elements/Framework/TypedElementAttributeBinding.h | |
TAttribute< FText > BindText
(
const FName& InIdentifier, |
Elements/Framework/TypedElementAttributeBinding.h | ||
FTextAttributeFormatted BindTextFormat
(
FTextFormat Format |
Composite a FText attribute using a format string and named arguments bound to TEDS columns. | Elements/Framework/TypedElementAttributeBinding.h |