Methods
(static) init() → {void}
- Type:
- void
(static) onDestroy() → {void}
- Type:
- void
(static) onFirstTabReady() → {void}
First tab has finished rendering/sizing — signal that the tab bar is ready
- Type:
- void
(static) onFocusChanged() → {void}
When the tab bar gains or loses focus, update tab visuals
- Type:
- void
(static) onFocusedTabIndexChanged() → {void}
Called when focusedTabIndex is set externally (e.g., returning from user dropdown). Syncs internal state and updates visuals.
- Type:
- void
(static) onKeyEvent(key, press) → {boolean}
| Name | Type | Description |
|---|---|---|
key | string | |
press | boolean |
- Type:
- boolean
(static) onTabsChanged() → {void}
Rebuilds tab children when the tabs array changes. Skips recreation when the tab configuration is unchanged (e.g. returning to the same screen) so already-sized JRTab nodes appear instantly.
- Type:
- void
(static) selectTab(index) → {void}
Selects a tab by index: updates isSelected on all children and fires selectedTabId
| Name | Type | Description |
|---|---|---|
index | integer |
- Type:
- void
(static) syncSelectedTab() → {void}
Updates isSelected on existing tabs to match the current selectedTabId without recreating any nodes. Also aligns the focus cursor so it tracks the active tab after an external re-sync (re-login, return from details).
- Type:
- void
(static) tabsMatchExisting(tabs) → {boolean}
Returns true if the existing tab children match the new tabs configuration
| Name | Type | Description |
|---|---|---|
tabs | object |
- Type:
- boolean
(static) updateFocusedTabVisuals() → {void}
Updates the isFocused visual state on tab children
- Type:
- void