IHosannaView
Optional
audioThis hint can be used in conjunction with the audio guide item
Optional
audioBackground color for the button.
Background image URI for the button.
Focus color for the button.
Focus image URI for the button.
Gap between button and list.
Font key for the button title.
Indicates whether the element can receive focus.
These are the children that are rendered on screen in the tree structure of the view
Text color for the button.
Indicdates whether the view is a focus group which means it can have a focused child Otherwise it will be focused itself
Optional
customDropdown position (top or bottom).
Optional
focusedHorizontal padding for the button.
Icon color for the button.
Icon image URI for the button.
Whether the dropdown is open.
Indicates whether the element is currently focused.
If true, this view has been presented in an AggregateViewController
Focus image URI for a single item.
Focus image URI for the bottom item.
Focus color for items.
Focus image URI for a middle item.
The items to display in the dropdown.
Private
itemsNumber of items in the dropdown.
Focus image URI for the top item.
Background color for the dropdown list.
Background image URI for the dropdown list.
Optional
onEvent handler called when selection changes.
Optional
parentPlaceholder text for the button.
The selected item index.
These are the children that were created in getViews, in a flat strcuture - it contains EVERYTHING that we declared.
The IHosannaView subclass that created us in getViews
Indicates whether the navigatable entity is visible.
Children
Optional
mountTarget: IHosannaView<ViewState>View Creation
Optional
nextState: TBuilds the view and attaches it to the view owner.
Optional
mountTarget: IHosannaView<ViewState>The target to mount the view.
The built view or undefined.
Optional
options: IScreenDismissOptionsOptional
args: Record<string, unknown>Optional
cancellationToken: HsCancellationTokenAsync Support
Optional
args: Record<string, unknown>Optional
callback: AsyncCommandEventCallbackResolves the next focusable element in the given direction.
The event containing details about the focus transition.
The next focusable element, or undefined if none exists.
Audio guide support
Measurement
Private
getPrivate
getCalculates the translation for the dropdown popup.
The [x, y] translation array.
Private
getGets the focus URI for a dropdown item based on its index.
The item index.
The focus URI string.
Rendererers
Hibernates the view and its subviews by releasing native renderers and setting the view phase to Hibernating.
The view to be added as a subview.
index of the child in the parent view, -1 means add to end
Private
isChecks if this ComboBox or any child is focused.
True if focused, otherwise false.
Focus
Measures the ComboBox view.
Called when the navigatable entity is shown.
DO NOT CALL THIS METHOD DIRECTLY DO NOT OVERRIDE IT
Private
onHandles key events in the dropdown list (selects item on OK).
The key event.
Called after the navigatable entity has been added to an aggregate view.
The aggregate view to which the entity has been added.
Called after the navigatable entity has been removed from an aggregate view.
The aggregate view from which the entity has been removed.
Called when the navigatable entity is hidden.
Handles focus event for the ComboBox.
Handles key events for the ComboBox (closes dropdown on Back).
The key event.
Called before the navigatable entity is added to an aggregate view.
The aggregate view to which the entity will be added.
This method is called before applying state changes to the view. It is used to perform any necessary preparations before the state changes are applied.
Called before the navigatable entity is removed from an aggregate view.
The aggregate view from which the entity will be removed.
Presents a new screen in the navigation stack or as a dialog.
The screen to be presented, represented by a ViewStruct<ViewState>
.
Optional
options: IScreenPresentationOptionsOptional presentation options.
If true, the screen will be presented as a dialog.
If true, the screen transition will be animated.
Navigatable View
Private
speakWakes up the view and its subviews by reserving native renderers and setting the view phase to Mounted.
ComboBoxView is a composite view for displaying a dropdown combo box.
Remarks
Example