Members

(static, constant) FOCUS_PADDING

Vertical gap between the bottom of the poster (= bottom of the RowList focus ring) and the first text label. Prevents the focus border from overlapping the title.

Default Value
  • 18

Methods

(static) arrangeIconAndBackdropText() → {void}

Centers the icon in the upper portion of the backdrop and positions the library name label below it.

Returns:
Type: 
void

(static) getLibraryIconPath(collectionType) → {string}

Maps a Jellyfin library collection type to a local icon image path. Used to display a type-appropriate icon on library tile backdrops.

Parameters:
NameTypeDescription
collectionTypestring

item.collectionType string (e.g., "music", "livetv")

Returns:

pkg:/ path to the icon image

Type: 
string

(static) init() → {void}

Returns:
Type: 
void

(static) initBackdropText(slotWidth, posterHeight) → {void}

Lazy-creates the backdrop text label for library tiles on first use. Deferred allocation avoids creating the node for non-library rows.

Parameters:
NameTypeDescription
slotWidthfloat
posterHeightfloat
Returns:
Type: 
void

(static) onFocusChanged() → {void}

Toggles scrolling vs static title on focus, and speaks the title via audio guide.

Returns:
Type: 
void

(static) onIconLoadStatusChanged() → {void}

Shows the icon and repositions it with the backdrop text once the icon image loads. Hides the icon on failure so a stale image from a previous render does not persist.

Returns:
Type: 
void

(static) onItemContentChanged() → {void}

Returns:
Type: 
void

(static) onPosterLoadStatusChanged() → {void}

Hides the backdrop (and any backdropText) once the poster image loads. Shows the backdrop as a fallback when the image is unavailable or still loading. backdropText visibility is only toggled for library tiles — standard items must not inherit a stale label when this component instance is recycled from a library row.

Returns:
Type: 
void

(static) onSizeChanged() → {void}

Returns:
Type: 
void

(static) renderItem() → {void}

Returns:
Type: 
void

(static) renderLibraryTile(item, slotWidth, posterHeight) → {void}

Renders a My Media library tile: colored backdrop + type icon + library name. The poster loads the library's Primary image; when it loads successfully the backdrop (and overlaid text) hide to reveal the image.

Parameters:
NameTypeDescription
itemobject
slotWidthfloat
posterHeightfloat
Returns:
Type: 
void

(static) renderStandardItem(item, slotWidth, posterHeight) → {void}

Renders a standard item: poster image with title/subtitle text below.

Parameters:
NameTypeDescription
itemobject
slotWidthfloat
posterHeightfloat
Returns:
Type: 
void

(static) updateLayout(slotWidth, posterHeight) → {void}

Updates positions and sizes of all child nodes to match the current slot dimensions. Called at the start of every renderItem() before branching into tile/standard mode.

Parameters:
NameTypeDescription
slotWidthfloat
posterHeightfloat
Returns:
Type: 
void