How to listen fullscreen event
I have a problem, when I click button of fullscreen or exitFullscreen ,I want to do some thing, how can I listen the event of fullscreen
Thank you for your question.
To understand how the Toolbar works, you can see the full list of its methods in the source code (i.e., in a
In particular, the
exitFullscreen methods may be suitable for your case.
You can use a
beforetoolbarcreated event to customize the Toolbar and override its default functionality.
Please check this CodePen demo to learn how to do it.
Also, you can refer to this tutorial to find out more details about the Toolbar customization.
Hope this is helpful.