Adding a few parameters to customize the gallery and adding the option to display the first image as a larger title image #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added a few parameters to the
GalleryImage
widget to be able to customize things that are currently hard-coded:gridHorizontalSpacing
,gridVerticalSpacing
,gridColumns
)thumbnailBorderRadius
)The above parameters are optional and their default values are set to reasonable values similar to what it was hard-coded to originally (the only exception is
gridVerticalSpacing
which was originally0
but now it defaults to5
to make the gallery look pretty when there are multiple rows of thumbnails)Also added a parameter
showTitleImage
that, when set to true, makes the gallery show the first image as a larger single thumbnail on the top, whith the rest of the gallery being as usual in a grid below that. Additional optional parameterstitleImageWidth
andtitleImageHeight
can be set to control the size of the title thumbnail.