Methods

(static) init() → {void}

Returns:
Type: 
void

(static) onDestroy() → {void}

Returns:
Type: 
void

(static) onFirstTabReady() → {void}

First tab has finished rendering/sizing — signal that the tab bar is ready

Returns:
Type: 
void

(static) onFocusChanged() → {void}

When the tab bar gains or loses focus, update tab visuals

Returns:
Type: 
void

(static) onFocusedTabIndexChanged() → {void}

Called when focusedTabIndex is set externally (e.g., returning from user dropdown). Syncs internal state and updates visuals.

Returns:
Type: 
void

(static) onKeyEvent(key, press) → {boolean}

Parameters:
NameTypeDescription
keystring
pressboolean
Returns:
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.

Returns:
Type: 
void

(static) selectTab(index) → {void}

Selects a tab by index: updates isSelected on all children and fires selectedTabId

Parameters:
NameTypeDescription
indexinteger
Returns:
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).

Returns:
Type: 
void

(static) tabsMatchExisting(tabs) → {boolean}

Returns true if the existing tab children match the new tabs configuration

Parameters:
NameTypeDescription
tabsobject
Returns:
Type: 
boolean

(static) updateFocusedTabVisuals() → {void}

Updates the isFocused visual state on tab children

Returns:
Type: 
void