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
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
onDestroy() → {void}
Returns:
- Type:
- void
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