Skip to main content

UB1ContentPickerWidget

Overview

  • Reusable ContentPicker component. Design: composition pattern (included in other widgets), unified API (same API regardless of TileView/ListView), event-driven (only emits delegates, no business logic), flexible layout (switch grid/list via EntryWidth/Height). Usage: include in another widget, set data with SetListItems(), bind the OnItemSelected/OnItemDeselected delegates, and handle business logic externally.

Metadata

FieldValue
Kindclass
EnvironmentB1 - Presentation
Categoryclasses
ExtendsUB1UserWidgetBase

Properties (2)

NameTypeDescription
BW_TileViewanyTileView widget (uses BlueUI B1TileView).
CurrentSelectionanyThe currently selected item (Single Selection mode).

Functions (8)

FunctionParametersReturnsDescription
ClearSelection--Clears the selection.
GetSelectedItem-UB1ContentPickerEntryDataGets the currently selected item (Single mode).
GetSelectedItems-UB1ContentPickerEntryData[]Gets all selected items (Multi mode).
OnTileViewItemClickedItem: UObject-Callback invoked on Tile View Item Clicked.
OnTileViewItemSelectionChangedItem: UObject-Handles a TileView item click event; updates only the UI state and emits a delegate.
RegenerateList--Refreshes the list (call after data changes).
SetListItemsItems: UObject[]-Sets the item list.
SetSelectionModeInSelectionMode: any-Sets the selection mode (Single/Multi).