UB1EditTextBlockPopupWidget
Overview
- EditTextBlock Popup Widget Hosts an EditTextBlock component with optional title and confirm/cancel buttons. Exposes confirm/cancel events and confirm-with-text payload. Design: 1. Composition - wraps B1EditTextBlockWidget (Layer 1 component) 2. Unified API - SetTitle/SetHintText/SetText/GetText 3. Event-driven - delegates only, no business logic 4. Flexible layout - BindWidgetOptional for title and buttons Usage:
cpp UB1EditTextBlockPopupWidget* popup = UB1UIManager::CreateWidget<UB1EditTextBlockPopupWidget>(); popup->SetTitle(FText::FromString(TEXT("Edit Name"))); popup->SetHintText(FText::FromString(TEXT("Enter name..."))); popup->OnConfirmText.AddDynamic(this, &ThisClass::OnNameConfirmed); popup->OnCancelClicked.AddDynamic(popup, &UB1EditTextBlockPopupWidget::ClosePopup); popup->ShowWidget();
Metadata
| Field | Value |
|---|---|
| Kind | class |
| Environment | B1 - Presentation |
| Category | classes |
| Extends | UB1MainContentWidgetBase |
Properties (9)
| Name | Type | Description |
|---|---|---|
BW_Button_Cancel | any | |
BW_Button_Close | any | |
BW_Button_Confirm | any | |
BW_EditTextBlock | any | |
BW_Text_Description | any | |
BW_Text_Title | any | |
OnCancelClicked | FOnCancelClicked | |
OnConfirmClicked | FOnConfirmClicked | |
OnConfirmText | FOnConfirmText |
Functions (16)
| Function | Parameters | Returns | Description |
|---|---|---|---|
ClosePopup | - | - | |
DebugLogConfirmedText | InText: string | - | |
GetEditTextBlock | - | UB1EditTextBlockWidget | Returns Edit Text Block. |
GetText | - | string | Returns Text. |
OnCancelButtonClicked | - | - | Callback invoked on Cancel Button Clicked. |
OnCloseButtonClicked | - | - | Callback invoked on Close Button Clicked. |
OnConfirmButtonClicked | - | - | Callback invoked on Confirm Button Clicked. |
OnEditTextCommitted | InText: string, InCommitType: ETextCommit | - | Callback invoked on Edit Text Committed. |
SetAutoCloseOnConfirm | bInAutoClose: boolean | - | Sets Auto Close On Confirm. |
SetDescription | InDescription: string | - | Sets Description. |
SetHintText | InText: string | - | Sets Hint Text. |
SetLineCount | InLineCount: integer | - | Sets Line Count. |
SetMaxLength | InMaxLength: integer | - | Sets Max Length. |
SetText | InText: string | - | Sets Text. |
SetTitle | InTitle: string | - | Sets Title. |
SetWrapTextAt | InWrapTextAt: number | - | Sets Wrap Text At. |