Merge pull request #229 from e1jo/lightbox-custom
new PhotoSwipe lightbox: pass native options
This commit is contained in:
+2
-1
@@ -298,7 +298,8 @@ class Render {
|
||||
// Show download button only if downloading is allowed AND configured.
|
||||
showDownload: downloadAllowed && !!getConfigOption('ipp.lightbox.showDownload', true),
|
||||
showArrows: !!getConfigOption('ipp.lightbox.showArrows', true),
|
||||
mobileArrows: !!getConfigOption('ipp.lightbox.mobileArrows', false)
|
||||
mobileArrows: !!getConfigOption('ipp.lightbox.mobileArrows', false),
|
||||
options: getConfigOption('ipp.lightbox.options', {}) as Record<string, unknown>
|
||||
},
|
||||
groupByDate
|
||||
}
|
||||
|
||||
@@ -27,6 +27,7 @@ export interface LightboxConfig {
|
||||
showArrows: boolean
|
||||
showDownload: boolean
|
||||
mobileArrows: boolean
|
||||
options?: Record<string, unknown>
|
||||
}
|
||||
|
||||
export interface GalleryProps {
|
||||
|
||||
Reference in New Issue
Block a user