new GridPresenterBase() → {GridPresenterBase}
Constructor - view is set later via onInit()
- Type:
- GridPresenterBase
Methods
clearPresentationInfo() → {void}
Clears/hides the presentation info display
- Type:
- void
configureLoadTask(task, parentItem, viewMode) → {void}
Configures the LoadItemsTask2 for data loading
| Name | Type | Description |
|---|---|---|
task | object | The LoadItemsTask2 node |
parentItem | object | The library item being displayed |
viewMode | string | Current view mode (e.g., "Movies", "MoviesGrid") |
- Type:
- void
createInfoNodes(infoGroup) → {void}
Creates presenter-specific info nodes in the presentationInfo group Called during onInit() if presenter needs custom info display
| Name | Type | Description |
|---|---|---|
infoGroup | object | The presentationInfo Group node |
- Type:
- void
destroy() → {void}
Called when presenter is being destroyed Override to clean up resources, stop tasks, unobserve fields
- Type:
- void
getBackdropMode() → {string}
Returns the backdrop mode for this presenter
"presentation" | "fullscreen" | "none"
- Type:
- string
getGridConfig(viewMode) → {object}
Returns grid layout configuration for the specified view mode
- translation: [x, y] grid position
- itemSize: [width, height] size of each grid cell
- rowHeights: [height] array of row heights
- numRows: string number of visible rows
- numColumns: string number of columns
- imageDisplayMode: "scaleToZoom" | "scaleToFit"
| Name | Type | Description |
|---|---|---|
viewMode | string | Current view mode |
Grid config with properties:
- Type:
- object
getItemType() → {string}
Returns the item type(s) to load
Item type(s) for API query (e.g., "Movie", "Series,Movie")
- Type:
- string
getOptions(parentItem) → {object}
Returns the options configuration for ItemGridOptions
| Name | Type | Description |
|---|---|---|
parentItem | object | The library item being displayed |
Options object with views, sort, filter arrays
- Type:
- object
onInit(view) → {void}
Called after presenter is attached to BaseGridView Stores view reference and performs initialization Override in subclass but call super.onInit(view) first
| Name | Type | Description |
|---|---|---|
view | object | Reference to BaseGridView component |
- Type:
- void
onItemFocused(item, currentView) → {void}
Called when an item receives focus Override to update presentation info display
| Name | Type | Description |
|---|---|---|
item | object | The focused ContentNode item |
currentView | string | The current view mode (e.g., "Movies", "MoviesGrid") |
- Type:
- void
onOptionsClosed(options) → {void}
Called when options dialog is closed Override to handle presenter-specific option changes
| Name | Type | Description |
|---|---|---|
options | object | The ItemGridOptions component |
- Type:
- void
shouldShowPresentationInfo(viewMode) → {boolean}
Returns whether to show presentation info panel for the view mode
| Name | Type | Description |
|---|---|---|
viewMode | string | Current view mode |
True to show info panel
- Type:
- boolean