Sleep

An easy Vue.js part for fullscreen

.vue-fullscreen.You can easily use an easy Vue.js element to toggle fullscreen setting on some of your intended web content.You may view it live right here.Example.To start working with vue-fullscreen use the adhering to command to install it.$ yarn include vue-fullscreen.Import in your venture.bring in fullscreen coming from 'vue-fullscreen'.Vue.use( fullscreen).Part Consumption:.Your Content to feature in fullscreen.......The background style of the wrapper may be transformed as the instance, only available when fullscreen setting gets on and cover is true. It can be likewise utilized as an element and as a plugin. All the on call techniques and occasions are on the plugin's web page.export default procedures: toggle () this.fullscreen =! this.fullscreen.,.data() gain fullscreen: untrue.Care: Due to the web browser safety and security function, you can merely contact these approaches through a customer motion. (e.g. a hit callback). To make certain it is held by internet browsers explore the Full-Screen API.If you would like to explore additional regarding vue-fullscreen, scalp to the task's storehouse on GitHub, where you will certainly also locate the source code.