new PhotoPresenter() → {PhotoPresenter}
Returns:
- Type:
- PhotoPresenter
Extends
- GridPresenterBase
Methods
configureLoadTask(task, parentItem, viewMode) → {void}
Parameters:
| Name | Type | Description |
|---|---|---|
task | object | |
parentItem | object | |
viewMode | string |
Returns:
- Type:
- void
destroy() → {void}
Returns:
- Type:
- void
getBackdropMode() → {string}
Photos use fullscreen backdrop
Returns:
- Type:
- string
getGridConfig(viewMode) → {object}
Parameters:
| Name | Type | Description |
|---|---|---|
viewMode | string |
Returns:
- Type:
- object
getOptions(parentItem) → {object}
Photo view options control slideshow and random behavior These are unusual - 4 options that set 2 boolean flags
Parameters:
| Name | Type | Description |
|---|---|---|
parentItem | object |
Returns:
- Type:
- object
isRandom() → {boolean}
Returns current random state based on view mode
Returns:
- Type:
- boolean
isSlideshow() → {boolean}
Returns current slideshow state based on view mode
Returns:
- Type:
- boolean
onInit(view) → {void}
Parameters:
| Name | Type | Description |
|---|---|---|
view | object |
Returns:
- Type:
- void
onOptionsClosed(_options) → {void}
Called when options dialog is closed Persist slideshow/random settings based on view selection
Parameters:
| Name | Type | Description |
|---|---|---|
_options | object |
Returns:
- Type:
- void
shouldShowPresentationInfo(viewMode) → {boolean}
No presentation info for photos
Parameters:
| Name | Type | Description |
|---|---|---|
viewMode | string |
Returns:
- Type:
- boolean