Gathering detailed insights and metrics for vue-winbox
Gathering detailed insights and metrics for vue-winbox
Gathering detailed insights and metrics for vue-winbox
Gathering detailed insights and metrics for vue-winbox
npm install vue-winbox
Typescript
Module System
Node Version
NPM Version
Vue (56.34%)
TypeScript (38.75%)
HTML (4.91%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
167 Stars
73 Commits
16 Forks
3 Watchers
2 Branches
4 Contributors
Updated on Jul 03, 2025
Latest Version
0.2.3
Package Id
vue-winbox@0.2.3
Unpacked Size
10.74 kB
Size
3.71 kB
File Count
6
NPM Version
8.15.0
Node Version
16.17.1
Published on
Jun 22, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
7
Vue 3 wrapper for WinBox.js.
Demo: https://vue-winbox.vercel.app
1pnpm add vue-winbox
1<script setup> 2import { ref } from 'vue' 3import { VueWinBox } from 'vue-winbox' 4 5const count = ref(0) 6const wbRef = ref() 7 8//WinBox options 9const options = { 10 title: 'Current count: 0', 11 class: 'modern', 12} 13 14setInterval(() => { 15 count.value++ 16 wbRef.value?.winbox?.setTitle(`Current count: ${count.value}`) 17}, 500) 18</script> 19 20<template> 21 <VueWinBox ref="wbRef" :options="options" @onmove="onMove"> 22 <div>Window 1: {{ count }}</div> 23 </VueWinBox> 24</template>
To update props and access methods/controls, just add a ref
to the VueWinBox
component and use it like how you would with WinBox.js
:
1// Set the window title 2wbRef.value.winbox.setTitle('New title') 3 4// Custom Position / Size 5wbRef.value.winbox.resize('50%', '50%').move('center', 'center') 6 7// Add class 8wbRef.value.winbox.addClass('modern') 9 10// Focus a window (bring up to front) 11wbRef.value.winbox.focus() 12 13// Chaining Methods 14wbRef.value.winbox 15 .setTitle('Title') 16 .resize('50%', '50%') 17 .move('center', 'center') 18 .focus()
To reinitialize a closed window:
1wbRef.value.winbox.initialize()
Name | Type | Default | Description |
---|---|---|---|
resize | Function | - | Fired when the window resizes. |
close | Function | - | Fired when the window is closing. |
focus | Function | - | Fired when the window is in focus. |
blur | Function | - | - |
move | Function | - | Fired when the window moves. |
1import { useWinBox } from 'vue-winbox' 2 3const createWindow = useWinBox() 4 5function generate() { 6 const winbox = createWindow({ 7 title: 'Window title', 8 }) 9 winbox.fullscreen() 10}
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 3/25 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
24 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More