Methods
(static) applyRowSizes() → {void}
Applies per-row slot sizes, heights, and spacings based on each row's cursorSize
- Type:
- void
(static) createSkeletonRows() → {void}
Creates skeleton rows for all known favorite types with loading placeholders
- Type:
- void
(static) findInsertIndexForType(itemType, typeArray) → {integer}
Find the correct insert index for a type based on the type ordering
| Name | Type | Description |
|---|---|---|
itemType | string | |
typeArray | object |
- Type:
- integer
(static) findRowBySectionId(sectionId) → {object}
Find a row by its sectionId
| Name | Type | Description |
|---|---|---|
sectionId | string |
- Type:
- object
(static) getItemAtIndices(indices) → {dynamic}
| Name | Type | Description |
|---|---|---|
indices | object |
- Type:
- dynamic
(static) getSlotSizeForType(itemType) → {object}
Returns the appropriate slot size for a Jellyfin item type. Follows the same logic as SearchRow.bs getSlotSizeForType. WIDE (16:9) — Episode, Video, MusicVideo, PhotoAlbum, Photo SQUARE (1:1) — Music types, Playlist, Program, TvChannel, Recording PORTRAIT (2:3) — all others (Movie, Series, Person, BoxSet, etc.)
| Name | Type | Description |
|---|---|---|
itemType | string |
- Type:
- object
(static) init() → {void}
- Type:
- void
(static) itemSelected() → {void}
- Type:
- void
(static) loadFavorites() → {void}
Entry point called by Home.bs when Favorites tab is selected. Creates skeleton rows on first load, then fires the data task.
- Type:
- void
(static) onDestroy() → {void}
- Type:
- void
(static) onFavoritesLoaded() → {void}
Groups loaded favorites by item type and populates/removes skeleton rows. On refresh, updates existing rows in place to preserve focus position.
- Type:
- void
(static) onItemFocused() → {void}
- Type:
- void
(static) onKeyEvent(key, press) → {boolean}
| Name | Type | Description |
|---|---|---|
key | string | |
press | boolean |
- Type:
- boolean
(static) updateBackdropForFocusedItem() → {void}
- Type:
- void
(static) updateSize() → {void}
- Type:
- void