update gallery-view with the data changes
This commit is contained in:
parent
04adf08b5c
commit
aa884930bc
2 changed files with 15 additions and 17 deletions
|
@ -39,10 +39,10 @@ export type GalleryEntryWithoutVariants = {
|
|||
*/
|
||||
export type GalleryEntryWithVariants = {
|
||||
/**
|
||||
* The id of the entry from the {@link GalleryEntry variants} collection to display when the page first loads.
|
||||
* The index of the entry from the {@link GalleryEntry variants} collection to display when the page first loads.
|
||||
* If this is not defined, the first entry will be chosen instead.
|
||||
*/
|
||||
defaultVariant?: string
|
||||
defaultVariant?: number
|
||||
/**
|
||||
* Variants are a collection of alternate media to display for the entry.
|
||||
* This changes based on the {@link GalleryEntryFormat format} of the entry:
|
||||
|
@ -51,7 +51,7 @@ export type GalleryEntryWithVariants = {
|
|||
* - For all other media, this is put into a carousel,
|
||||
* where the {@link GalleryEntry.defaultVariant default} or selected variant is displayed in the main viewer
|
||||
*/
|
||||
variants: Record<string, GalleryEntryWithoutVariants>
|
||||
variants: GalleryEntryWithoutVariants[]
|
||||
} & GalleryEntrySharedProperties
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue