Methods
(static) closeMenu() → {void}
Returns:
- Type:
- void
(static) handleClosedKeyEvent(key) → {boolean}
Key handling when the dropdown menu is closed
Parameters:
| Name | Type | Description |
|---|---|---|
key | string |
Returns:
- Type:
- boolean
(static) handleMenuKeyEvent(key) → {boolean}
Key handling when the dropdown menu is open
Parameters:
| Name | Type | Description |
|---|---|---|
key | string |
Returns:
- Type:
- boolean
(static) hideTriggerFocus() → {void}
Hides focus border/background on the trigger button
Returns:
- Type:
- void
(static) init() → {void}
Returns:
- Type:
- void
(static) onDestroy() → {void}
Returns:
- Type:
- void
(static) onFocusChanged() → {void}
Called when the dropdown gains or loses focus. Shows/hides the trigger button border. Menu requires OK press to open.
Returns:
- Type:
- void
(static) onItemsChanged() → {void}
Rebuilds menu item children when the items array changes
Returns:
- Type:
- void
(static) onKeyEvent(key, press) → {boolean}
Parameters:
| Name | Type | Description |
|---|---|---|
key | string | |
press | boolean |
Returns:
- Type:
- boolean
(static) onRenderComplete() → {void}
Returns:
- Type:
- void
(static) onSelectedItemChanged() → {void}
Updates the isSelected visual on menu items to match selectedItemId
Returns:
- Type:
- void
(static) onTriggerIconBlendColorChanged() → {void}
Returns:
- Type:
- void
(static) onTriggerIconChanged() → {void}
Returns:
- Type:
- void
(static) onTriggerTextChanged() → {void}
Returns:
- Type:
- void
(static) openMenu() → {void}
Returns:
- Type:
- void
(static) positionMenu(buttonWidth, buttonHeight) → {void}
Positions the dropdown menu directly below the trigger button
Parameters:
| Name | Type | Description |
|---|---|---|
buttonWidth | integer | |
buttonHeight | integer |
Returns:
- Type:
- void
(static) showTriggerFocus() → {void}
Shows focus border/background on the trigger button
Returns:
- Type:
- void
(static) sizeTriggerButton() → {void}
Sizes the trigger button background and border to fit the content. Uses the same padding-based approach as TextButton.
Returns:
- Type:
- void
(static) updateFocusedItemVisuals() → {void}
Updates the isFocused visual state on menu item children
Returns:
- Type:
- void