New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ic-vue-fullsceen

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ic-vue-fullsceen

A Vue directive for browser into a fullscreen mode

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

v-fullscreen

A Vue directive for browser into fullscreen mode.

Install

$ npm i ic-vue-fullscreen || yarn add ic-vue-fullscreen

Usage

import Vue from 'vue'
import IcVueFullscreen from 'ic-vue-fullscreen'

Vue.use(IcVueFullscreen, options) // options is an optional object
<div v-fullscreen>
    
</div>

If you want to do some stuff when browser into fullscreen mode or exiting fullscreen mode, you can use it with a handler:

<component v-fullscreen="handler"></component>
{
    methods: {
        handler (fullscreenElement) {
            // fullscreenElement is exists when browser into fullscreen
            // or is null when browser exited fullscreen
        }
    }
}

options.events

Currently, options only supports a events prop. It's an array of events, defaults to ['click'].

More informations about Fullscreen API, see here

FAQs

Package last updated on 24 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts