0.0.2 • Published 6 years ago

abeluiux-nwjs-get v0.0.2

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

Is a wrapper of the DOM’s topmost window object by nwjs for vuejs 2.x

Install

$ npm install abeluiux-nwjs-get
or
$ yarn add abeluiux-nwjs-get

Usage

  • In the main.js of your project vuejs
import 'abeluiux-nwjs-get'
// 
import Vue from 'vue'

new Vue({
    el       : {...} ,
    template : {...} ,
})
  • Use in any component vuejs
<template>{...}</template>

<script>

    export default {
        created() {
            console.log(nwjs.win)
            /**
                {
                    window
                    x
                    y
                    width
                    heigth
                    title
                    ...
                }
            **/
        }
    }

</script>