Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add onMaximizedStatusChange prop fn #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sashko9807
Copy link

Whenever a state of isMaximized is changed, be it via ESC key or ExpandButton, send back the new status of isMaximized, in order to allow a customized behavior.

In some edge-cases one might want to render the Gallery Carousel conditionally, for example: I already have a grid to display images at smaller width, but I want to render the maximized carousel, whenever user clicks on one of the images, and close it whenever user presses ESC, or ExpandButton.

Whenever a state of isMaximized is changed, be it via ESC key or ExpandButton, send back the new status of isMaximized, in order to allow a customized behavior.

In some edge-cases one might want to render the Gallery Carousel conditionally, for example:
I already have a grid to display images at smaller width, but I want to render the maximized carousel, whenever user clicks on one of the images, and close it
whenever user presses ESC, or ExpandButton.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant