How do I add a fullscreen button for an iFrame display? #421
Answered
by
fancyapps
mattbarnicle
asked this question in
Q&A
-
This appeared to show up automatically in fancybox 3. I've upgraded to 5 and it's gone. I tried adding it based on going through the docs and discussions to see how it would be done, but can't get it to show. Here's my code (I'm using React):
|
Beta Was this translation helpful? Give feedback.
Answered by
fancyapps
Feb 28, 2023
Replies: 1 comment 1 reply
-
The toolbar is enabled by default only for galleries that contain images, you can use option new Fancybox(
[{
src: "your-url",
type: 'iframe',
}],
{
Toolbar: {
enabled: true,
display: {
right: [ "fullscreen", "close" ],
},
},
}
) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mattbarnicle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The toolbar is enabled by default only for galleries that contain images, you can use option
enabled: true
to enable it for any content (https://fancyapps.com/fancybox/plugins/toolbar/#toolbar):