You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having separate image sets requires hand-authoring the gallery ID.
Possible Solution
In the most general sense, allow the gallery option to take a Union[Callable,str] and if it's a Callable, call the function (but only at the start of the element render). Then provide a usable function like autoincrement that just provides an auto-incrementing gallery ID (as this doesn't have to be stable across pageviews, it just needs to be unique per lightbox on any given page).
Steps to Reproduce (for bugs)
Context
The text was updated successfully, but these errors were encountered:
Expected Behavior
Provide some mechanism for allowing each image set to have its own unique gallery ID. For example, if you have an entry like:
the resulting HTML would be something like:
Current Behavior
Having separate image sets requires hand-authoring the gallery ID.
Possible Solution
In the most general sense, allow the
gallery
option to take aUnion[Callable,str]
and if it's a Callable, call the function (but only at the start of the element render). Then provide a usable function likeautoincrement
that just provides an auto-incrementing gallery ID (as this doesn't have to be stable across pageviews, it just needs to be unique per lightbox on any given page).Steps to Reproduce (for bugs)
Context
The text was updated successfully, but these errors were encountered: