![]() getCurrentIndex(): returns the current indexĮach PR should be specific and isolated to the issue you're trying to fix.slideToIndex(index): slides to a specific index.exitFullScreen(): deactivates full screen.The following functions can be accessed using refs If false, listens to keydown events on image gallery element (imageGalleryElement.addEventListener).If true, listens to keydown events on window (window.addEventListener). ![]() RenderFullscreenButton: ( onClick, isFullscreen) => ( isFullscreen argument for when fullscreen is active.onClick callback that will toggle fullscreen.Use this to render a custom fullscreen button.RenderFullscreenButton: Function, custom fullscreen button component RenderPlayPauseButton: ( onClick, isPlaying) => ( isPlaying boolean for when gallery is playing.onClick callback that will toggle play/pause.Use this to render a custom play pause button.RenderPlayPauseButton: Function, play pause button component RenderRightNav: ( onClick, disabled) => ( onClick callback that will slide to the next item.Use this to render a custom right nav control.RenderRightNav: Function, custom right nav component ![]() disabled boolean for when the nav is disabled. ![]()
0 Comments
Leave a Reply. |