[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-71227":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":25,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":37,"readmeContent":38,"aiSummary":39,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":40,"discoverSource":41},71227,"winbox","nextapps-de\u002Fwinbox","nextapps-de","WinBox is a modern HTML5 window manager for the Web.","",null,"JavaScript",6434,213,67,22,0,2,3,8,6,37.99,"Apache License 2.0",false,"master",true,[27,28,29,30,31,32,5,33,34,35,36],"box","desktop","desktop-app","desktop-widget","frame","popup","window","window-manager","windowmanager","windows","2026-06-12 02:02:49","\u003Ch1>\n    \u003Cimg src=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fnextapps-de\u002Fwinbox@master\u002Fdemo\u002Fwinbox-gradient.svg\" alt=\"WinBox.js: A modern HTML5 window manager for the web.\" width=\"100%\">\n\u003C\u002Fh1>\n\u003Ch3>Modern window manager for the web: lightweight, outstanding performance, no dependencies, fully customizable, open source!\u003C\u002Fh3>\n\n\u003Ca target=\"_blank\" href=\"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fwinbox\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002Fwinbox.svg\">\u003C\u002Fa>\u003C!--\u003Ca target=\"_blank\" href=\"https:\u002F\u002Fgithub.com\u002Fnextapps-de\u002Fwinbox\u002Fissues\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fissues\u002Fnextapps-de\u002Fwinbox.svg\">\u003C\u002Fa>-->\n\u003Ca target=\"_blank\" href=\"https:\u002F\u002Fgithub.com\u002Fnextapps-de\u002Fwinbox\u002Fblob\u002Fmaster\u002FLICENSE.md\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fl\u002Fwinbox.svg\">\u003C\u002Fa>\n\n\u003Ca href=\"https:\u002F\u002Fnextapps-de.github.io\u002Fwinbox\u002F\">Demo\u003C\u002Fa> &ensp;&bull;&ensp; \u003Ca href=\"#started\">Getting Started\u003C\u002Fa> &ensp;&bull;&ensp; \u003Ca href=\"#options\">Options\u003C\u002Fa> &ensp;&bull;&ensp; \u003Ca href=\"#api\">API\u003C\u002Fa> &ensp;&bull;&ensp; \u003Ca href=\"#themes\">Themes\u003C\u002Fa> &ensp;&bull;&ensp; \u003Ca href=\"#customize\">Customize\u003C\u002Fa> &ensp;&bull;&ensp; \u003Ca href=\"CHANGELOG.md\">Changelog\u003C\u002Fa>\n\n\u003Ca name=\"demo\">\u003C\u002Fa>\n### Live Demo and Code Examples\n\n\u003Ca href=\"https:\u002F\u002Fnextapps-de.github.io\u002Fwinbox\u002F\">https:\u002F\u002Fnextapps-de.github.io\u002Fwinbox\u002F \u003C\u002Fa>\n\n## Support this Project\n\nHello my name is Thomas, also known as ts-thomas. This is a personal project which I fully made in my free time. It is hosted by the Github account from the company Nextapps where I work to give it more exposure.\nI have never received any financial support for this project from the company Nextapps as some of you might have guessed, since it is a free and open source project.\nI'm really happy that WinBox.js is getting so much positive feedback and also feature requests. Please feel free to support me by making a personal donation which helps me a lot to keep this project alive and also to providing all the contribution to keep WinBox.js on a professional top-end level.\n\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fwinboxjs\u002Fdonate\" target=\"_blank\" style=\"margin-right: 10px\">\n    \u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fwebpack\u002Fdonate\u002Fbutton@2x.png?color=blue\" height=\"32\" alt=\"Donate using Open Collective\">\n\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fsponsors\u002Fts-thomas\u002F\" target=\"_blank\" style=\"margin-right: 10px\">\n    \u003Cimg src=\"https:\u002F\u002Fcamo.githubusercontent.com\u002Fb932f45963b659dfeb86b77ff29a9eaebe25a734d63a17a176aa82bf34845cf2\u002F68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d53706f6e736f72266d6573736167653d254532253944254134266c6f676f3d47697448756226636f6c6f723d253233666538653836\" height=\"32\" alt=\"Donate using Github Sponsors\">\n\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fliberapay.com\u002Fts-thomas\u002Fdonate\" target=\"_blank\" style=\"margin-right: 10px\">\n    \u003Cimg src=\"https:\u002F\u002Fliberapay.com\u002Fassets\u002Fwidgets\u002Fdonate.svg\" height=\"32\" alt=\"Donate using Liberapay\">\n\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fwww.patreon.com\u002Fuser?u=96245532\" target=\"_blank\" style=\"margin-right: 10px\">\n    \u003Cimg src=\"https:\u002F\u002Fs3-us-west-1.amazonaws.com\u002Fwidget-images\u002Fbecome-patron-widget-medium%402x.png\" height=\"32\" alt=\"Donate using Patreon\">\n\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fsalt.bountysource.com\u002Fteams\u002Fts-thomas\" target=\"_blank\" style=\"margin-right: 10px\">\n    \u003Cimg src=\"https:\u002F\u002Fd2bbtvgnhux6eq.cloudfront.net\u002Fassets\u002Flogos\u002Falternate-7868987b01474c95f47678727f6657882f6565a36396eb4b637ea53cc5944ff8.svg\" height=\"32\" alt=\"Donate using Bountysource\">\n\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fwww.paypal.com\u002Fdonate\u002F?hosted_button_id=GEVR88FC9BWRW\" target=\"_blank\">\n    \u003Cimg src=\"https:\u002F\u002Fwww.paypalobjects.com\u002Fwebstatic\u002Fde_DE\u002Fi\u002Fde-pp-logo-200px.png\" height=\"32\" alt=\"Donate using PayPal\">\n\u003C\u002Fa>\n\u003C!-- [![](https:\u002F\u002Fimg.shields.io\u002Fstatic\u002Fv1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https:\u002F\u002Fgithub.com\u002Fsponsors\u002Fts-thomas\u002F) -->\n\u003Cbr>\u003Cbr>\nThanks a lot,\nThomas (ts-thomas)\n\n\u003Ca name=\"addon\">\u003C\u002Fa>\n### Plugins \u002F Add-ons \u002F Extensions\nVue 2 and 3 (a wrapper component that adds the ability to mount Vue components in WinBox.js):\u003Cbr>\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fwobsoriano\u002Fvue-winbox\">https:\u002F\u002Fgithub.com\u002Fwobsoriano\u002Fvue-winbox\u003C\u002Fa>\n\nA React controlled component for WinBox.js, with full Reactful props and state.:\u003Cbr>\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Frickonono3\u002Freact-winbox\">https:\u002F\u002Fgithub.com\u002Frickonono3\u002Freact-winbox\u003C\u002Fa>\n\n\u003Ca name=\"started\">\u003C\u002Fa>\n## Getting Started\n\n__Get Latest Stable Build (Recommended):__\n\n\u003Ctable>\n    \u003Ctr>\n        \u003Ctd colspan=3\">\n            \u003Cb>\u003Cu>Bundle:\u003C\u002Fu>\u003C\u002Fb> (all assets bundled into one single file: js + css + html + icons)\n        \u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>winbox.bundle.min.js\u003C\u002Ftd>\n        \u003Ctd>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fnextapps-de\u002Fwinbox\u002Fraw\u002F0.2.82\u002Fdist\u002Fwinbox.bundle.min.js\" target=\"_blank\">Download\u003C\u002Fa>\u003C\u002Ftd>\n        \u003Ctd>\u003Ca href=\"https:\u002F\u002Frawcdn.githack.com\u002Fnextapps-de\u002Fwinbox\u002F0.2.82\u002Fdist\u002Fwinbox.bundle.min.js\" target=\"_blank\">https:\u002F\u002Frawcdn.githack.com\u002Fnextapps-de\u002Fwinbox\u002F0.2.82\u002Fdist\u002Fwinbox.bundle.min.js\u003C\u002Fa>\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd colspan=3\">\n            \u003Cbr>\u003Cb>\u003Cu>Non-Bundled:\u003C\u002Fu>\u003C\u002Fb> (js and css are separated, css includes icons as base64)\n        \u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>winbox.min.js\u003C\u002Ftd>\n        \u003Ctd>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fnextapps-de\u002Fwinbox\u002Fraw\u002F0.2.82\u002Fdist\u002Fjs\u002Fwinbox.min.js\" target=\"_blank\">Download\u003C\u002Fa>\u003C\u002Ftd>\n        \u003Ctd>\u003Ca href=\"https:\u002F\u002Frawcdn.githack.com\u002Fnextapps-de\u002Fwinbox\u002F0.2.82\u002Fdist\u002Fjs\u002Fwinbox.min.js\" target=\"_blank\">https:\u002F\u002Frawcdn.githack.com\u002Fnextapps-de\u002Fwinbox\u002F0.2.82\u002Fdist\u002Fjs\u002Fwinbox.min.js\u003C\u002Fa>\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>winbox.min.css\u003C\u002Ftd>\n        \u003Ctd>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fnextapps-de\u002Fwinbox\u002Fraw\u002F0.2.82\u002Fdist\u002Fcss\u002Fwinbox.min.css\" target=\"_blank\">Download\u003C\u002Fa>\u003C\u002Ftd>\n        \u003Ctd>\u003Ca href=\"https:\u002F\u002Frawcdn.githack.com\u002Fnextapps-de\u002Fwinbox\u002F0.2.82\u002Fdist\u002Fcss\u002Fwinbox.min.css\" target=\"_blank\">https:\u002F\u002Frawcdn.githack.com\u002Fnextapps-de\u002Fwinbox\u002F0.2.82\u002Fdist\u002Fcss\u002Fwinbox.min.css\u003C\u002Fa>\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd colspan=3\">\n            \u003Cbr>\u003Cb>\u003Cu>Sources:\u003C\u002Fu>\u003C\u002Fb> (not bundled at all, images as url to original resources)\n        \u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>ES6 Modules\u003C\u002Ftd>\n        \u003Ctd>\u003Ca href=\"https:\u002F\u002Fminhaskamal.github.io\u002FDownGit\u002F#\u002Fhome?url=https:\u002F\u002Fgithub.com\u002Fnextapps-de\u002Fwinbox\u002Ftree\u002F0.2.82\u002Fsrc\u002Fjs\" target=\"_blank\">Download\u003C\u002Fa>\u003C\u002Ftd>\n        \u003Ctd>The \u003Ci>\u002Fsrc\u002Fjs\u003C\u002Fi> folder of this Github repository\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>LESS Files (source)\u003C\u002Ftd>\n        \u003Ctd>\u003Ca href=\"https:\u002F\u002Fminhaskamal.github.io\u002FDownGit\u002F#\u002Fhome?url=https:\u002F\u002Fgithub.com\u002Fnextapps-de\u002Fwinbox\u002Ftree\u002F0.2.82\u002Fsrc\u002Fcss\" target=\"_blank\">Download\u003C\u002Fa>\u003C\u002Ftd>\n        \u003Ctd>The \u003Ci>\u002Fsrc\u002Fcss\u003C\u002Fi> folder of this Github repository\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>winbox.css (compiled)\u003C\u002Ftd>\n        \u003Ctd>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fnextapps-de\u002Fwinbox\u002Fraw\u002F0.2.82\u002Fsrc\u002Fcss\u002Fwinbox.css\" target=\"_blank\">Download\u003C\u002Fa>\u003C\u002Ftd>\n        \u003Ctd>\u003Ca href=\"https:\u002F\u002Frawcdn.githack.com\u002Fnextapps-de\u002Fwinbox\u002F0.2.82\u002Fsrc\u002Fcss\u002Fwinbox.css\" target=\"_blank\">https:\u002F\u002Frawcdn.githack.com\u002Fnextapps-de\u002Fwinbox\u002F0.2.82\u002Fsrc\u002Fcss\u002Fwinbox.css\u003C\u002Fa>\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>src.zip\u003C\u002Ftd>\n        \u003Ctd>\u003Ca href=\"https:\u002F\u002Fminhaskamal.github.io\u002FDownGit\u002F#\u002Fhome?url=https:\u002F\u002Fgithub.com\u002Fnextapps-de\u002Fwinbox\u002Ftree\u002F0.2.82\u002Fdist\" target=\"_blank\">Download\u003C\u002Fa>\u003C\u002Ftd>\n        \u003Ctd>Download all source files including image original resources.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n\u003C\u002Ftable>\n\n__Get Latest (NPM):__\n\n```cmd\nnpm install winbox\n```\n\n### Use Bundled Version (Recommended)\n\n> The bundled version includes all assets like js, css, html and icon images as base64.\n\nA best practice is to load the library as async and use some modern preloading mechanism:\n\n```html\n\u003Chtml>\n\u003Chead>\n    \u003Clink rel=\"preload\" href=\"winbox.bundle.min.js\" as=\"script\">\n\u003C\u002Fhead>\n\u003Cbody>\n    \u003C!--\n    \n    HTML CONTENT\n    \n    -->\n    \u003C!-- BOTTOM OF BODY -->\n    \u003Cscript src=\"winbox.bundle.min.js\" async>\u003C\u002Fscript>\n    \u003C!-- YOUR SCRIPT -->\n    \u003Cscript src=\"my-script.js\" defer>\u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\nWhen you get troubles with unavailable references then remove the `async` or `defer` from this example and invest some minutes later to find out how you can properly load js assets asynchronously today.\n\n### Use Non-Bundled Version\n\nThe non-bundled version needs to load js and css separately (css already includes icons as base64).\n\n```html\n\u003Chtml>\n\u003Chead>\n    \u003Clink rel=\"stylesheet\" href=\"winbox.min.css\">\n    \u003Cscript src=\"winbox.min.js\">\u003C\u002Fscript>\n\u003C\u002Fhead>\n\u003Cbody>\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\nYou can also load the non-bundled version in the same way.\n\n### ES6 Modules\n\nThe ES6 modules are located in `src\u002Fjs\u002F`. But you need to load the stylesheet file explicitly since this is just automatically loaded by the bundled version.\n\n```html\n\u003Chead>\n    \u003Clink rel=\"stylesheet\" href=\"dist\u002Fcss\u002Fwinbox.min.css\">\n\u003C\u002Fhead>\n```\n\n```html\n\u003Cscript type=\"module\">\n  import WinBox from \".\u002Fsrc\u002Fjs\u002Fwinbox.js\";\n\u003C\u002Fscript>\n```\n\nYou can also load modules via CDN, e.g.:\n\n```html\n\u003Cscript type=\"module\">\n  import WinBox from \"https:\u002F\u002Funpkg.com\u002Fwinbox@0.2.82\u002Fsrc\u002Fjs\u002Fwinbox.js\";\n\u003C\u002Fscript>\n```\n\nThe ES6 modules are not minified. Please use your favored bundler or build tool for this purpose.\n\n\u003Ca name=\"api\">\u003C\u002Fa>\n## Overview\n\nConstructor:\n\n- new \u003Ca href=\"#winbox.new\">**WinBox**(title, options\\\u003Ckey: value\\>)\u003C\u002Fa> : winbox\n\nGlobal methods:\n\n- \u003Ca href=\"#winbox.new\">WinBox.**new**(title, options\\\u003Ckey: value\\>)\u003C\u002Fa> : winbox\n- \u003Ca href=\"#winbox.stack\">WinBox.**stack**()\u003C\u002Fa> : Array\\\u003Cwinbox\\>\n\nInstance member methods:\n\n- \u003Ca href=\"#winbox.mount\">winbox.**mount**(src)\u003C\u002Fa>\n- \u003Ca href=\"#winbox.unmount\">winbox.**unmount**(dest)\u003C\u002Fa>\n- \u003Ca href=\"#winbox.setUrl\">winbox.**setUrl**(string)\u003C\u002Fa>\n- \u003Ca href=\"#winbox.setTitle\">winbox.**setTitle**(string)\u003C\u002Fa>\n- \u003Ca href=\"#winbox.setIcon\">winbox.**setIcon**(url)\u003C\u002Fa>\n- \u003Ca href=\"#winbox.move\">winbox.**move**(x, y)\u003C\u002Fa>\n- \u003Ca href=\"#winbox.resize\">winbox.**resize**(width, height)\u003C\u002Fa>\n- \u003Ca href=\"#winbox.close\">winbox.**close**(boolean)\u003C\u002Fa>\n- \u003Ca href=\"#winbox.focus\">winbox.**focus**(state)\u003C\u002Fa>\n- \u003Ca href=\"#winbox.blur\">winbox.**blur**(state)\u003C\u002Fa>\n- \u003Ca href=\"#winbox.hide\">winbox.**hide**(state)\u003C\u002Fa>\n- \u003Ca href=\"#winbox.show\">winbox.**show**(state)\u003C\u002Fa>\n- \u003Ca href=\"#winbox.minimize\">winbox.**minimize**(state)\u003C\u002Fa>\n- \u003Ca href=\"#winbox.maximize\">winbox.**maximize**(state)\u003C\u002Fa>\n- \u003Ca href=\"#winbox.fullscreen\">winbox.**fullscreen**(state)\u003C\u002Fa>\n- \u003Ca href=\"#winbox.restore\">winbox.**restore**(state)\u003C\u002Fa>\n- \u003Ca href=\"#winbox.setBackground\">winbox.**setBackground**(string)\u003C\u002Fa>\n- \u003Ca href=\"#winbox.addClass\">winbox.**addClass**(name)\u003C\u002Fa>\n- \u003Ca href=\"#winbox.removeClass\">winbox.**removeClass**(name)\u003C\u002Fa>\n- \u003Ca href=\"#winbox.hasClass\">winbox.**hasClass**(name)\u003C\u002Fa>\n- \u003Ca href=\"#winbox.toggleClass\">winbox.**toggleClass**(name)\u003C\u002Fa>\n- \u003Ca href=\"#winbox.addControl\">winbox.**addControl**(options)\u003C\u002Fa>\n- \u003Ca href=\"#winbox.removeControl\">winbox.**removeControl**(name)\u003C\u002Fa>\n\nInstance properties (readonly):\n\n- \u003Ca href=\"#winbox.id\">winbox.**id**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.index\">winbox.**index**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.window\">winbox.**window**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.body\">winbox.**body**\u003C\u002Fa>\n\nInstance properties (writable):\n\n- \u003Ca href=\"#winbox.x\">winbox.**x**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.y\">winbox.**y**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.width\">winbox.**width**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.height\">winbox.**height**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.top\">winbox.**top**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.right\">winbox.**right**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.bottom\">winbox.**bottom**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.left\">winbox.**left**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.minwidth\">winbox.**minwidth**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.minheight\">winbox.**minheight**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.maxwidth\">winbox.**maxwidth**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.maxheight\">winbox.**maxheight**\u003C\u002Fa>\n\nInstance state boolean properties (readonly):\n\n- \u003Ca href=\"#winbox.min\">winbox.**min**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.max\">winbox.**max**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.full\">winbox.**full**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.hidden\">winbox.**hidden**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.focused\">winbox.**focused**\u003C\u002Fa>\n\nCallback methods:\n\n- \u003Ca href=\"#winbox.oncreate\">winbox.**oncreate**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.onshow\">winbox.**onshow**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.onhide\">winbox.**onhide**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.onclose\">winbox.**onclose**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.onfocus\">winbox.**onfocus**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.onblur\">winbox.**onblur**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.onmove\">winbox.**onmove**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.onresize\">winbox.**onresize**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.onfullscreen\">winbox.**onfullscreen**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.onmaximize\">winbox.**onmaximize**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.onminimize\">winbox.**onminimize**\u003C\u002Fa>\n- \u003Ca href=\"#winbox.onrestore\">winbox.**onrestore**\u003C\u002Fa>\n\n\u003Ca name=\"options\" id=\"options\">\u003C\u002Fa>\n## Options\n\n\u003Ctable>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>Option\u003C\u002Ftd>\n        \u003Ctd>Values\u003C\u002Ftd>\n        \u003Ctd>Description\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>id\u003C\u002Ftd>\n        \u003Ctd>number | string\u003C\u002Ftd>\n        \u003Ctd>Set a unique id to the window. Used to define custom styles in css, query elements by context or just to identify the corresponding window instance. If no ID was set it will automatically create one for you.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>index\u003C\u002Ftd>\n        \u003Ctd>number\u003C\u002Ftd>\n        \u003Ctd>Set the initial \u003Ccode>z-index\u003C\u002Fcode> of the window to this value (will be increased automatically when unfocused\u002Ffocused).\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>title\u003C\u002Ftd>\n        \u003Ctd>string\u003C\u002Ftd>\n        \u003Ctd>The window title.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>mount\u003C\u002Ftd>\n        \u003Ctd>HTMLElement\u003C\u002Ftd>\n        \u003Ctd>Mount an element (widget, template, etc.) to the window body.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>html\u003C\u002Ftd>\n        \u003Ctd>string\u003C\u002Ftd>\n        \u003Ctd>Set the \u003Ccode>innerHTML\u003C\u002Fcode> of the window body.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>url\u003C\u002Ftd>\n        \u003Ctd>string\u003C\u002Ftd>\n        \u003Ctd>Open URL inside the window (loaded via iframe).\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>width\u003Cbr>height\u003C\u002Ftd>\n        \u003Ctd>number | string\u003C\u002Ftd>\n        \u003Ctd>Set the initial width\u002Fheight of the window (supports units \"px\" and \"%\").\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>minwidth\u003Cbr>minheight\u003C\u002Ftd>\n        \u003Ctd>number | string\u003C\u002Ftd>\n        \u003Ctd>Set the minimal width\u002Fheight of the window (supports units \"px\" and \"%\"). Should be at least the height of the window header title bar.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>maxwidth\u003Cbr>maxheight\u003C\u002Ftd>\n        \u003Ctd>number | string\u003C\u002Ftd>\n        \u003Ctd>Set the maximum width\u002Fheight of the window (supports units \"px\" and \"%\").\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>autosize\u003C\u002Ftd>\n        \u003Ctd>boolean\u003C\u002Ftd>\n        \u003Ctd>Automatically size the window to fit the window contents.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>overflow\u003C\u002Ftd>\n        \u003Ctd>boolean\u003C\u002Ftd>\n        \u003Ctd>Allow the window to move outside the viewport.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>x\u003Cbr>y\u003C\u002Ftd>\n        \u003Ctd>number | string\u003C\u002Ftd>\n        \u003Ctd>Set the initial position of the window (supports: \"right\" for x-axis, \"bottom\" for y-axis, \"center\" for both, units \"px\" and \"%\" for both).\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>max\u003C\u002Ftd>\n        \u003Ctd>boolean\u003C\u002Ftd>\n        \u003Ctd>Automatically toggles the window into maximized state when created.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>min\u003C\u002Ftd>\n        \u003Ctd>boolean\u003C\u002Ftd>\n        \u003Ctd>Automatically toggles the window into minimized state when created.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>hidden\u003C\u002Ftd>\n        \u003Ctd>boolean\u003C\u002Ftd>\n        \u003Ctd>Automatically toggles the window into hidden state when created.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>modal\u003C\u002Ftd>\n        \u003Ctd>boolean\u003C\u002Ftd>\n        \u003Ctd>Shows the window as modal.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>top\u003Cbr>right\u003Cbr>bottom\u003Cbr>left\u003C\u002Ftd>\n        \u003Ctd>number | string\u003C\u002Ftd>\n        \u003Ctd>Set or limit the viewport of the window's available area (supports units \"px\" and \"%\"). Also used for custom splitscreen configurations.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>background\u003C\u002Ftd>\n        \u003Ctd>string\u003C\u002Ftd>\n        \u003Ctd>Set the background of the window (supports all CSS styles which are also supported by the style-attribute \"background\", e.g. colors, transparent colors, hsl, gradients, background images)\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>border\u003C\u002Ftd>\n        \u003Ctd>number\u003C\u002Ftd>\n        \u003Ctd>Set the border width of the window (supports all the browsers css units).\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>icon\u003C\u002Ftd>\n        \u003Ctd>string\u003C\u002Ftd>\n        \u003Ctd>Make the titlebar icon visible and set the image source to this url.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>class\u003C\u002Ftd>\n        \u003Ctd>string\u003C\u002Ftd>\n        \u003Ctd>Add one or more classnames to the window (multiple classnames as array or separated with whitespaces e.g. \"class-a class-b\"). Used to define custom styles in css, query elements by context (also within CSS) or just to tag the corresponding window instance.\u003Cbr>\u003Cbr>WinBox provides you some useful \u003Ca href=\"#control-classes\">Built-in Control Classes\u003C\u002Fa> to easily setup a custom configuration.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>oncreate\u003C\u002Ftd>\n        \u003Ctd>function(options)\u003C\u002Ftd>\n        \u003Ctd>Callback triggered when the winbox element is being created. You can modify all these winbox options from this table passed as first parameter.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>onmove\u003C\u002Ftd>\n        \u003Ctd>function(x, y)\u003C\u002Ftd>\n        \u003Ctd>Callback triggered when the window moves.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>onresize\u003C\u002Ftd>\n        \u003Ctd>function(width,&nbsp;height)\u003C\u002Ftd>\n        \u003Ctd>Callback triggered when the window resizes.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>onfullscreen\u003C\u002Ftd>\n        \u003Ctd>function()\u003C\u002Ftd>\n        \u003Ctd>Callback triggered when the window enters fullscreen.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>onminimize\u003C\u002Ftd>\n        \u003Ctd>function()\u003C\u002Ftd>\n        \u003Ctd>Callback triggered when the window enters minimized mode.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>onmaximize\u003C\u002Ftd>\n        \u003Ctd>function()\u003C\u002Ftd>\n        \u003Ctd>Callback triggered when the window enters maximize mode.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>onrestore\u003C\u002Ftd>\n        \u003Ctd>function()\u003C\u002Ftd>\n        \u003Ctd>Callback triggered when the window returns to a windowed state from a Fullscreen, Minimized or Maximized state.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>onhide\u003C\u002Ftd>\n        \u003Ctd>function()\u003C\u002Ftd>\n        \u003Ctd>Callback triggered when the window is hidden with win.hide()\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>onshow\u003C\u002Ftd>\n        \u003Ctd>function()\u003C\u002Ftd>\n        \u003Ctd>Callback triggered when the window is shown with win.show()\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>onclose\u003C\u002Ftd>\n        \u003Ctd>function(force)\u003C\u002Ftd>\n        \u003Ctd>Callbacks triggered when the window is closing. The keyword \u003Ccode>this\u003C\u002Fcode> inside the callback function refers to the corresponding WinBox instance. Note: the event 'onclose' will be triggered right before closing and stops closing when a callback was applied and returns a truthy value.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>onfocus\u003C\u002Ftd>\n        \u003Ctd>function()\u003C\u002Ftd>\n        \u003Ctd>Callback triggered when a window goes into focused state.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>onblur\u003C\u002Ftd>\n        \u003Ctd>function()\u003C\u002Ftd>\n        \u003Ctd>Callback triggered when a window lost the focused state.\u003C\u002Ftd>\n    \u003C\u002Ftr>\n\u003C\u002Ftable>\n\n## Create and Setup Window\n\n\u003Ca name=\"winbox.new\">\u003C\u002Fa>\n#### Basic Window\n\n> When no `root` was specified the window will append to the `document.body`.\n\n```js\nnew WinBox(\"Window Title\");\n```\n\nAlternatively:\n```js\nWinBox.new(\"Window Title\");\n```\n\nAlternatively:\n```js\nnew WinBox({ title: \"Window Title\" });\n```\n\nAlternatively:\n\u003Ca name=\"winbox.setTitle\">\u003C\u002Fa>\n```js\nvar winbox = WinBox();\nwinbox.setTitle(\"Window Title\");\n```\n\n#### Custom Root\n\n> The root is the unique element in a document where the window will append to. In most cases that is usually the `document.body` which is the default root. Multiple roots at the same time are just partially supported (they share the same viewport actually).\n\n```js\nnew WinBox(\"Window Title\", {\n    root: document.body\n});\n```\n\n#### Custom Color\n\n> Supports all CSS styles which are also supported by the style-attribute \"background\", e.g. colors, rgba, hsl, gradients, background images.\n\n```js\nnew WinBox(\"Custom Color\", {\n    background: \"#ff005d\"\n});\n```\n\nAlternatively:\n\u003Ca name=\"winbox.setBackground\">\u003C\u002Fa>\n```js\nvar winbox = new WinBox(\"Custom Color\");\nwinbox.setBackground(\"#ff005d\");\n```\n\n#### Custom Border\n\n> Supports all units.\n\n```js\nnew WinBox({\n    title: \"Custom Border\",\n    border: \"1em\"\n});\n```\n\nYou can also define multiple border values (the order is: top, right, bottom, left):\n```js\nnew WinBox({\n    title: \"Custom Border\",\n    border: \"0 1em 15px 1em\"\n});\n```\n\n#### Custom Titlebar Icon\n\n> Supports all datatypes which are also supported by the style-attribute \"background-image\", e.g. URL, base64 encoded data. The default icon size is 20 x 20 pixels.\n\n```js\nnew WinBox({\n    title: \"Custom Icon\",\n    icon: \"img\u002Ficon.svg\"\n});\n```\n\nAlternatively:\n\u003Ca name=\"winbox.setIcon\">\u003C\u002Fa>\n```js\nvar winbox = new WinBox(\"Custom Icon\");\nwinbox.setIcon(\"img\u002Ficon.svg\");\n```\n\nSee below in the style section to find out how to easily customize the titlebar icon style via css.\n\n####  Custom Viewport\n\n> Define the available area (relative to the document) in which the window can move or could be resized (supports units \"px\" and \"%\").\n\n```js\nnew WinBox(\"Custom Viewport\", {\n    top: \"50px\",\n    right: \"5%\",\n    bottom: 50,\n    left: \"5%\"\n});\n```\n\nAlternatively (but just support numbers!):\n```js\nvar winbox = new WinBox(\"Custom Viewport\");\n\nwinbox.top = 50;\nwinbox.right = 200;\nwinbox.bottom = 0;\nwinbox.left = 200\n```\n\n\u003Ca name=\"winbox.move\">\u003C\u002Fa>\u003Ca name=\"winbox.resize\">\u003C\u002Fa>\n#### Custom Position \u002F Size\n\n> Supports keywords `\"right\"` for x-axis, `\"bottom\"` for y-axis, `\"center\"` for both, units `px` and `%` also for both.\n\n```js\nnew WinBox(\"Custom Viewport\", {\n    x: \"center\",\n    y: \"center\",\n    width: \"50%\",\n    height: \"50%\"\n});\n```\n\n```js\nnew WinBox(\"Custom Viewport\", {\n    x: \"right\",\n    y: \"bottom\",\n    width: \"200px\",\n    height: \"200px\"\n});\n```\n\nAlternatively (also supports same units and keywords as above):\n```js\nvar winbox = new WinBox(\"Custom Viewport\");\n\nwinbox.resize(\"50%\", \"50%\")\n      .move(\"center\", \"center\");\n```\n\nAlternatively (just support numeric values as `px` when directly assigned!):\n```js\nvar winbox = new WinBox(\"Custom Viewport\");\n\nwinbox.width = 200;\nwinbox.height = 200;\nwinbox.resize();\n\nwinbox.x = 100;\nwinbox.y = 100;\nwinbox.move();\n```\n\n> In some cases you need to execute `.resize()` before `.move()` to properly apply relative positions which is taking the windows size into account.\n\n\u003Ca name=\"winbox.overflow\">\u003C\u002Fa>\n#### Overflow Window\n\nAllow the window to move outside the viewport borders on left, right and bottom (default is \"false\").\n\n```js\nnew WinBox({\n    title: \"Overflow Window\",\n    overflow: true\n});\n```\n\n\u003Ca name=\"winbox.modal\">\u003C\u002Fa>\n#### Modal Window\n\n```js\nnew WinBox({\n    title: \"Modal Window\",\n    modal: true\n});\n```\n\n\u003Ca name=\"winbox.stack\">\u003C\u002Fa>\n#### Window Stack\n\nThe window stack gets you an ordered list of every created window which wasn't already closed. The last focused windows is placed as last entry in the Array.\n\n```js\nconst a = new WinBox(\"A\"); \u002F\u002F window A gets focused\nconst b = new WinBox(\"B\"); \u002F\u002F window B gets focused\nconst c = new WinBox(\"C\"); \u002F\u002F window C gets focused\na.focus(); \u002F\u002F window A gets focused\n\n\u002F\u002F get window stack ordered by focus history\nconst stack = WinBox.stack(); \u002F\u002F [B, C, A]\n```\n\n\u003Ca name=\"themes\">\u003C\u002Fa>\n#### Themes\n\n> Feel free to create your own themes and share them with us.\n\nYou will find all themes \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fnextapps-de\u002Fwinbox\u002Ftree\u002Fmaster\u002Fdist\u002Fcss\u002Fthemes\">here\u003C\u002Fa>.\n\nLoad the corresponding css files (or use a bundler), e.g.:\n\n```html\n\u003Chead>\n    \u003Clink rel=\"stylesheet\" href=\"dist\u002Fcss\u002Fwinbox.min.css\">\n    \u003Clink rel=\"stylesheet\" href=\"dist\u002Fcss\u002Fthemes\u002Fmodern.min.css\">\n    \u003Cscript src=\"dist\u002Fjs\u002Fwinbox.min.js\">\u003C\u002Fscript>\n\u003C\u002Fhead>\n```\n\nJust add the name of the theme via `class`:\n\n```js\nvar winbox = new WinBox({\n    title: \"Theme: Modern\",\n    class: \"modern\"\n});\n```\n\nAlternatively:\n\n```js\nvar winbox = new WinBox(\"Theme: Modern\");\nwinbox.addClass(\"modern\");\n```\n\nYou can change themes during the lifetime of the window.\n\n## Manage Window Content\n\n#### Set innerHTML\n\n> Do not forget to sanitize any user inputs which is part of the __html__ as this can lead to unintended XSS!\n\n```js\nnew WinBox(\"Set innerHTML\", {\n    html: \"\u003Ch1>Lorem Ipsum\u003C\u002Fh1>\"\n});\n```\n\nAlternatively:\n```js\nvar winbox = new WinBox(\"Set innerHTML\");\nwinbox.body.innerHTML = \"\u003Ch1>Lorem Ipsum\u003C\u002Fh1>\";\n```\n\n\u003Ca name=\"winbox.mount\">\u003C\u002Fa>\n#### Mount DOM (Cloned)\n\n> When cloning you can easily create multiple window instances of the same content in parallel.\n\n```html\n\u003Cdiv id=\"content\">\n    \u003Ch1>Lorem Ipsum\u003C\u002Fh1>\n    \u003Cp>Lorem ipsum [...]\u003C\u002Fp>\n\u003C\u002Fdiv>\n```\n\n```js\nvar node = document.getElementById(\"content\");\n\nnew WinBox(\"Mount DOM\", {\n    mount: node.cloneNode(true)\n});\n```\n\nAlternatively:\n```js\nvar node = document.getElementById(\"content\");\nvar winbox = new WinBox(\"Mount DOM\");\n\nwinbox.mount(node.cloneNode(true));\n```\n\n#### Mount DOM (Singleton) + Auto-Unmount\n\n> A singleton is a unique fragment which can move inside the document. When creating multiple windows and mounting the same fragment to it, the fragment will leave the old window (see the method above for cloning).\n\n> This workaround is also compatible if you are using server-side rendering.\n\nYou can simply use a hidden backstore to hold contents, as well you can use any other strategy like a templating engine etc.\n\n```html\n\u003Cdiv id=\"backstore\" style=\"display: none\">\n    \u003Cdiv id=\"content\">\n        \u003Ch1>Lorem Ipsum\u003C\u002Fh1>\n        \u003Cp>Lorem ipsum [...]\u003C\u002Fp>\n    \u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\n```js\nvar node = document.getElementById(\"content\");\n\nnew WinBox(\"Mount DOM\", {\n    mount: node\n});\n```\n\n> Auto-Unmount is a helpful feature which automatically moves back the fragment to the backstore source when closing the window.\n\nAlternatively:\n```js\nvar node = document.getElementById(\"content\");\nvar winbox = new WinBox(\"Mount DOM\");\n\nwinbox.mount(node);\n```\n\n\u003Ca name=\"winbox.unmount\">\u003C\u002Fa>\n#### Explicit Unmount\n\n```html\n\u003Cdiv id=\"backstore\" style=\"display: none\">\n    \u003Cdiv id=\"content\">\n        \u003Ch1>Lorem Ipsum\u003C\u002Fh1>\n        \u003Cp>Lorem ipsum [...]\u003C\u002Fp>\n    \u003C\u002Fdiv>\n\u003C\u002Fdiv>\n\u003Cdiv id=\"backstore-2\" style=\"display: none\">\u003C\u002Fdiv>\n```\n\n```js\nvar node = document.getElementById(\"content\");\nvar winbox = new WinBox(\"Mount DOM\");\n```\n\nMove fragment from hidden backstore to the window body:\n\n```js\nwinbox.mount(node);\n```\n\nMove fragment back to the hidden backstore source:\n\n```js\nwinbox.unmount();\n```\n\nOr move fragment to another destination:\n\n```js\nwinbox.unmount(document.getElementById(\"backstore-2\"));\n```\n\nOr just auto-unmount as default when closing:\n\n```js\nwinbox.close();\n```\n\nOverride default auto-unmount behavior when closing the window:\n\n```js\nnew WinBox(\"Mount DOM\", {\n    mount: node,\n    onclose: function(){\n        this.unmount(document.getElementById(\"backstore-2\"));\n    }\n});\n```\n\n#### Manual Mount Contents\n\nFeel free to use the `winbox.body` directly:\n```js\nvar node = document.getElementById(\"content\");\nvar winbox = new WinBox(\"Mount DOM\");\n\nwinbox.body.appendChild(node);\n```\n\nOr delegate it as a root to your templating engine, e.g.:\n```js\nMikado(template).mount(winbox.body).render(data);\n```\n\n#### Open URI \u002F URL\n\n> Do not forget to sanitize any user inputs when it is part of the __url__ as this can lead to unintended XSS!\n\nThe onload callback is optionally.\n```js\nnew WinBox(\"Open URL\", {\n    url: \"https:\u002F\u002Fwikipedia.com\",\n    onload: function(){ \u002F* extern page loaded *\u002F}\n});\n```\n\n> You can use every URI scheme which is supported by `src` attribute, e.g. URL, image or video, base64 encoded data.\n\nAlternatively:\n\u003Ca name=\"winbox.setUrl\">\u003C\u002Fa>\n```js\nvar winbox = new WinBox(\"Open URL\");\nwinbox.setUrl(\"https:\u002F\u002Fwikipedia.com\", function(){ \n    \u002F* extern page loaded *\u002F\n});\n```\n\n## The WinBox Window Instance\n\n\u003Ca name=\"winbox.id\">\u003C\u002Fa>\u003Ca name=\"winbox.max\">\u003C\u002Fa>\u003Ca name=\"winbox.min\">\u003C\u002Fa>\u003Ca name=\"winbox.full\">\u003C\u002Fa>\u003Ca name=\"winbox.hidden\">\u003C\u002Fa>\u003Ca name=\"winbox.focused\">\u003C\u002Fa>\nWindow States \u002F Information:\n```js\nvar winbox = new WinBox();\n\nconsole.log(\"Window ID:\", winbox.id);\nconsole.log(\"Window Index:\", winbox.index);\nconsole.log(\"Current Maximize State:\", winbox.max);\nconsole.log(\"Current Minimize State:\", winbox.min);\nconsole.log(\"Current Fullscreen State:\", winbox.full);\nconsole.log(\"Current Hidden State:\", winbox.hidden);\nconsole.log(\"Current Focused State:\", winbox.focused);\n```\n\n\u003Ca name=\"winbox.width\">\u003C\u002Fa>\u003Ca name=\"winbox.height\">\u003C\u002Fa>\u003Ca name=\"winbox.resize\">\u003C\u002Fa>\nWindow Size:\n```js\nvar winbox = new WinBox();\n\nwinbox.width = 200;\nwinbox.height = 200;\nwinbox.resize();\n\nconsole.log(\"Current Width:\", winbox.width);\nconsole.log(\"Current Height:\", winbox.height);\n```\n\n\u003Ca name=\"winbox.x\">\u003C\u002Fa>\u003Ca name=\"winbox.y\">\u003C\u002Fa>\u003Ca name=\"winbox.move\">\u003C\u002Fa>\nWindow Position:\n```js\nvar winbox = new WinBox();\n\nwinbox.x = 100;\nwinbox.y = 100;\nwinbox.move();\n\nconsole.log(\"Current Position X:\", winbox.x);\nconsole.log(\"Current Position Y:\", winbox.y);\n```\n\n\u003Ca name=\"winbox.top\">\u003C\u002Fa>\u003Ca name=\"winbox.right\">\u003C\u002Fa>\u003Ca name=\"winbox.bottom\">\u003C\u002Fa>\u003Ca name=\"winbox.left\">\u003C\u002Fa>\nWindow Viewport:\n```js\nvar winbox = new WinBox();\n\nwinbox.top = 50;\nwinbox.right = 50;\nwinbox.bottom = 50;\nwinbox.left = 50;\n\n\u002F\u002F update window if needed:\nwinbox.resize().move();\n\nconsole.log(\"Current Viewport Top:\", winbox.top);\nconsole.log(\"Current Viewport Right:\", winbox.right);\nconsole.log(\"Current Viewport Bottom:\", winbox.bottom);\nconsole.log(\"Current Viewport Left:\", winbox.left);\n```\n\n\u003Ca name=\"winbox.body\">\u003C\u002Fa>\nThe window body acts like the `document.body` and has a scroll pane:\n```js\nvar winbox = new WinBox();\nwinbox.body.innerHTML = \"\u003Ch1>Lorem Ipsum\u003C\u002Fh1>\";\n```\n\n\u003Ca name=\"winbox.window\">\u003C\u002Fa>\nGet the DOM element from the window outer frame:\n```js\nvar winbox = new WinBox();\nvar root = winbox.window;\n```\n\nYou also can get the window element by DOM id:\n```js\nvar winbox = new WinBox();\nvar root = document.getElementById(winbox.id);\n```\n\n> The window element points to the window most outer root element which also holds the window control and state classes:\n\nYou can access and modify the window DOM element directly:\n\n```js\nconst root = winbox.window;\nconst hidden = root.classList.contains(\"hide\");\nconst focused = root.classList.contains(\"focus\");\nroot.classList.remove(\"modal\");\nroot.classList.add(\"my-theme\");\nroot.classList.toggle(\"my-toggle\");\n```\n\nOr as an equivalent to the example above by using the WinBox built-in methods respectively:\n\n```js\nconst hidden = winbox.hasClass(\"hide\");\nconst focused = winbox.hasClass(\"focus\");\nwinbox.removeClass(\"modal\");\nwinbox.addClass(\"my-theme\");\nwinbox.toggleClass(\"my-toggle\");\n```\n\nYou can grab the `winbox` instance from the window outer frame DOM element:\n```js\nvar winbox = new WinBox();\n\u002F\u002F assume you have a DOM reference to the winbox window:\nvar window_element = document.getElementById(winbox.id);\n\u002F\u002F grab corresponding instance from window element:\nwinbox = window_element.winbox;\n```\n\n#### Controls\n\n```js\nvar winbox = new WinBox();\n```\n\n\u003Ca name=\"winbox.focus\">\u003C\u002Fa>\nFocus a window (bring up to front):\n```js\nwinbox.focus();\nwinbox.focus(true);\nwinbox.blur(false);\n```\n\n\u003Ca name=\"winbox.blur\">\u003C\u002Fa>\nBlur a focused window:\n```js\nwinbox.blur();\nwinbox.blur(true);\nwinbox.focus(false);\n```\n\n\u003Ca name=\"winbox.minimize\">\u003C\u002Fa>\nSet the minimized state of a window:\n```js\nwinbox.minimize();\nwinbox.minimize(true);\nwinbox.minimize(false);\n```\n\n\u003Ca name=\"winbox.maximize\">\u003C\u002Fa>\nSet the maximized state of a window:\n```js\nwinbox.maximize();\nwinbox.maximize(true);\nwinbox.maximize(false);\n```\n\n\u003Ca name=\"winbox.fullscreen\">\u003C\u002Fa>\nSet the fullscreen state of a window:\n```js\nwinbox.fullscreen();\nwinbox.fullscreen(true);\nwinbox.fullscreen(false);\n```\n\n\u003Ca name=\"winbox.restore\">\u003C\u002Fa>\nRestore the state of a window:\n```js\nwinbox.restore();\n```\n\n\u003Ca name=\"winbox.hide\">\u003C\u002Fa>\nHide a specific window:\n```js\nwinbox.hide();\nwinbox.hide(true);\nwinbox.show(false);\n```\n\n\u003Ca name=\"winbox.show\">\u003C\u002Fa>\nShow a specific hidden window:\n```js\nwinbox.show();\nwinbox.show(true);\nwinbox.hide(false);\n```\n\n\u003Ca name=\"winbox.close\">\u003C\u002Fa>\nClose and destroy a window:\n```js\nwinbox.close();\n```\n\n\u003Ca name=\"winbox.close\">\u003C\u002Fa>\nClose and destroy a window depending on custom conditional (e.g. by a confirmation status):\n```js\nwinbox.close(false || true);\n```\n\n#### Chaining Methods\n\n```js\nvar winbox = WinBox();\n\nwinbox.setTitle(\"Title\")\n      .setBackground(\"#fff\")\n      .resize(\"50%\", \"50%\")\n      .move(\"center\", \"center\")\n      .mount(document.getElementById(\"content\"));\n```\n\n> When using \"center\" as position you need to call `.resize()` before `.move()`.\n\n#### Callbacks\n\nYou can assign callbacks via the option payload when creating a window.\n\n> The keyword `this` in your callback function refers to the corresponding WinBox Instance.\n\n```js\nvar winbox = WinBox({\n    oncreate: function(options){\n        options.autosize = true;\n    },\n    onfocus: function(){\n        this.setBackground(\"#fff\");\n    },\n    onblur: function(){\n        this.setBackground(\"#999\");\n    },\n    onresize: function(width, height){\n        console.log(\"width:\", width, \"height:\", height);\n    },\n    onfullscreen: function(){\n        this.setBackground(\"#666\");\n    },\n    onminimize: function(){\n        this.setBackground(\"#999\");\n    },\n    onmaximize: function(){\n        this.setBackground(\"#AAA\");\n    },\n    onrestore: function(){\n        this.setBackground(\"#DDD\");\n    },    \n    onmove: function(x, y){\n        console.log(\"x:\", x, \"y:\", y);\n    },\n    onclose: function(force){\n        \u002F\u002F return \"true\" to skip the closing\n        \u002F\u002F return \"false\" to allow closing\n        \u002F\u002F use delegated force parameter optionally\n        return !confirm(\"Close window?\");\n    }\n});\n```\n\n#### The \"onclose\" callback\n\n> The event `onclose` will be triggered right before closing and __stops__ closing when a callback was applied and returns a __truthy value__.\n\nWithin your callback function just return `true` to stops the closing or return `false` to perform closing as default.\n```js\nnew WinBox({ \n    onclose: function(){\n        \u002F\u002F return \"true\" to skip the closing\n        \u002F\u002F return \"false\" to allow closing\n        if(do_some_checks()){\n            return true;\n        }\n    } \n});\n```\n\nThe `force` parameter from the `winbox.close(boolean)` will be delegated to your callback function as the first parameter. You need to handle the \"force\" state in your callback function.\n\n```js\nvar winbox = WinBox({ \n    onclose: function onclose(force){\n        \u002F\u002F use delegated force parameter optionally\n        return !force && !confirm(\"Close window?\");\n    } \n});\n```\n\nClose the window and execute callback as default (will show the prompt from example above):\n```js\nwinbox.close();\n```\n\nForce closing the window (does not show the prompt from example above):\n```js\nwinbox.close(true);\n```\n\n\u003Ca name=\"control-classes\" id=\"control-classes\">\u003C\u002Fa>\n#### Use Control Classes\n\nWinBox provides you some built-in control classes you can pass when creating a window instance. \n\n> All control classes from this list could be added or removed during lifetime of the window (after creation). State classes like `max`, `min`, `full`, `hidden` and `focus` could not be changed manually! For this purpose use the WinBox member methods accordingly e.g. `maximize()`, `minimize()`, `hide()`.\n\n\u003Ctable>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Cth>Classname&nbsp;&nbsp;&nbsp;&nbsp;\u003C\u002Fth>\n        \u003Cth align=\"left\">Description\u003C\u002Fth>\n    \u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>no-animation\u003C\u002Ftd>\n        \u003Ctd>Disables the windows transition animation\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>no-shadow\u003C\u002Ftd>\n        \u003Ctd>Disables the windows drop shadow\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>no-header\u003C\u002Ftd>\n        \u003Ctd>Hide the window header incl. title and toolbar\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>no-min\u003C\u002Ftd>\n        \u003Ctd>Hide the minimize icon\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>no-max\u003C\u002Ftd>\n        \u003Ctd>Hide the maximize icon\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>no-full\u003C\u002Ftd>\n        \u003Ctd>Hide the fullscreen icon\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>no-close\u003C\u002Ftd>\n        \u003Ctd>Hide the close icon\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>no-resize\u003C\u002Ftd>\n        \u003Ctd>Disables the window resizing capability\u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n        \u003Ctd>no-move\u003C\u002Ftd>\n        \u003Ctd>Disables the window moving capability\u003C\u002Ftd>\n    \u003C\u002Ftr>\n\u003C\u002Ftable>\n\n> Without the header the user isn't able to move the window frame. It may be useful for creating fixed popups.\n\nPass in classnames when creating the window to apply behaviour:\n```js\nconst winbox = WinBox({\n    class: [ \"no-min\", \"no-max\", \"no-full\", \"no-resize\", \"no-move\" ]\n});\n```\n\n> The example above is a good start to create classical popups.\n\nAlternatively you can use a whitespace separated string:\n```js\nconst winbox = WinBox({\n    class: \"no-min no-max no-full no-resize no-move\"\n});\n```\n\n\u003Ca name=\"winbox.addClass\">\u003C\u002Fa>\u003Ca name=\"winbox.removeClass\">\u003C\u002Fa>\nYou can add or remove all control classes from above along the window's lifetime:\n\n```js\nconst winbox = WinBox();\n\nwinbox.addClass(\"no-resize\")\n      .addClass(\"no-move\");\n```\n```js\nwinbox.removeClass(\"no-resize\")\n      .removeClass(\"no-move\");\n```\n```js\nwinbox.toggleClass(\"no-resize\")\n      .toggleClass(\"no-move\");\n```\n```js\nconst state = winbox.hasClass(\"no-resize\") &&\n              winbox.hasClass(\"no-move\");\n```\n\n## Custom Splitscreen\n\nUse the viewport limit to define your own splitscreen areas, e.g. for a simple vertical split:\n\n```js\nnew WinBox(\"Split Left\", {\n    right: \"50%\"\n});\n\nnew WinBox(\"Split Right\", {\n    left: \"50%\"\n});\n```\n\nSame way you can also define custom sizes and positions for each split as well as complex grids, e.g.:\n\n```js\nnew WinBox(\"Split Top-Left\", { right: \"66%\", bottom: \"50%\", max: true });\nnew WinBox(\"Split Bottom-Left\", { right: \"66%\", top: \"50%\", max: true });\n\nnew WinBox(\"Split Middle\", { left: \"34%\", right: \"34%\", max: true });\n\nnew WinBox(\"Split Top-Right\", { left: \"66%\", bottom: \"50%\", max: true });\nnew WinBox(\"Split Bottom-Right\", { left: \"66%\", top: \"50%\", max: true });\n```\n\nThe splitscreen from above will look like this grid:\n\n```\n---------------------------------------------\n|             |              |              |\n|             |              |              |\n|  Top Left   |              |  Top Right   |\n|             |              |              |\n|             |              |              |\n---------------    Middle    ----------------\n|             |              |              |\n|             |              |              |\n| Bottom Left |              | Bottom Right |\n|             |              |              |\n|             |              |              |\n---------------------------------------------\n```\n\nYou can set the values for the viewport dynamically, doing this makes it possible to size the grid dynamically and also change the grid schema.\n\n\u003Ca name=\"winbox.addControl\">\u003C\u002Fa>\n## Custom Controls\n\nThis example will add a custom control button `.wb-like` to the window heading toolbar along some CSS for icon styling:\n```css\n.wb-like {\n    background-size: 20px auto;\n}\n.wb-like.active {\n    background-image: url(demo\u002Fheart-filled.svg) !important;\n}\n```\n\nAttach a control to the window toolbar:\n```js\nwinbox.addControl({\n    \u002F\u002F the position index\n    index: 1,\n    \u002F\u002F classname to apply styling\n    class: \"wb-like\",\n    \u002F\u002F icon url when not specified via classname\n    image: \"demo\u002Fheart.svg\",\n    \u002F\u002F click listener\n    click: function(event, winbox){\n        \u002F\u002F the winbox instance will be passed as 2nd parameter\n        console.log(winbox.id);\n        \u002F\u002F \"this\" refers to the button which was clicked:\n        this.classList.toggle(\"active\");\n    }\n});\n```\n\n\u003Ca name=\"winbox.removeControl\">\u003C\u002Fa>\nRemove a control from the window toolbar:\n```js\nwinbox.removeControl(\"wb-like\")\n      .removeControl(\"wb-min\");\n```\n\n\u003Ca name=\"template\">\u003C\u002Fa>\n## Custom Template (Layout)\n\nYou can fully customize the WinBox window layout by providing a custom `template` via the config during creation. This way you can add new elements to the window or re-arrange them.\n\nThis example will add a control button `.wb-custom` to the window toolbar by using a custom template along some CSS:\n```css\n.wb-custom {\n    background-image: url(demo\u002Ficon-github.svg);\n    background-size: 17px auto;\n}\n```\n\nCreate by using a custom template:\n```js\nconst template = document.createElement(\"div\");\ntemplate.innerHTML = `\n    \u003Cdiv class=wb-header>\n        \u003Cdiv class=wb-control>\n            \u003Cspan class=wb-custom>\u003C\u002Fspan>\n            \u003Cspan class=wb-close>\u003C\u002Fspan>\n        \u003C\u002Fdiv>\n        \u003Cdiv class=wb-drag>\u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n    \u003Cdiv class=wb-body>\u003C\u002Fdiv>\n`;\n\nnew WinBox(\"Custom Template\", { template });\n```\n\n> The `.wb-drag` element needs to be existing when the user should be able to move the window by dragging the heading toolbar.\n\n\u003Ca name=\"customize\">\u003C\u002Fa>\n## Customize Window\n\n> Additionally, take a look into the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fnextapps-de\u002Fwinbox\u002Ftree\u002Fmaster\u002Fsrc\u002Fcss\u002Fthemes\">themes folder\u003C\u002Fa> to get some ideas how to customize the window.\n\nThe window boilerplate:\n\n\u003Cimg src=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fnextapps-de\u002Fwinbox@master\u002Fdemo\u002Fboilerplate.svg?v=4\" width=\"100%\" alt=\"WinBox Boilerplate\">\n\nHide or disable specific icons:\n```css\n.wb-min   { display: none }\n.wb-full  { display: none }\n.wb-max   { display: none }\n.wb-close { display: none }\n```\n\nModify a specific icon:\n```css\n.wb-max {\n    background-image: url(src\u002Fimg\u002Fmax.png);\n    background-position: center;\n    background-size: 15px auto;\n}\n```\n\nUse black standard icons (useful for bright backgrounds):\n```css\n.wb-control { filter: invert(1) }\n```\n\nModify or disable resizing areas on the window borders:\n```css\n\u002F* north *\u002F\n.wb-n  { display: none }\n\n\u002F* east *\u002F\n.wb-e  { display: none }\n\n\u002F* south *\u002F\n.wb-s  { display: none }\n\n\u002F* west *\u002F\n.wb-w  { display: none }\n\n\u002F* north-west *\u002F\n.wb-nw { display: none }\n\n\u002F* north-east *\u002F\n.wb-ne { display: none }\n\n\u002F* south-west *\u002F\n.wb-sw { display: none }\n\n\u002F* south-east *\u002F\n.wb-se { display: none }\n```\n\nModify or disable the window drop shadow:\n```css\n.winbox { box-shadow: none }\n```\n\nStyle the header title:\n```css\n.wb-title { font-size: 12px }\n```\n\nStyle the titlebar icon:\n```css\n.wb-icon {\n    width: 35px;\n    background-size: 35px 35px;\n}\n```\n\nStyle the window background (frame):\n```css\n.winbox {\n    background: linear-gradient(90deg, #ff00f0, #0050ff);\n    border-radius: 12px 12px 0 0;\n}\n```\n\nStyle the body of a window element and set the frame border:\n```css\n.wb-body {\n    \u002F* the width of window frame border: *\u002F\n    margin: 4px;\n    color: #fff;\n    background: #131820;\n}\n```\n\n> The margin of `.wb-body` corresponds to the width of the window border.\n\nApply styles when window is in \"minimized\" state:\n```css\n.winbox {\n    border-radius: 10px;\n}\n.winbox.min {\n    border-radius: 0;\n}\n.winbox.min .windbox-title {\n    font-size: 12px;\n}\n```\n\nApply styles when window is NOT in \"minimized\" state:\n```css\n.winbox:not(.min) {\n    \u002F* apply styles *\u002F\n}\n```\n\nApply styles when window is in \"maximized\" state:\n```css\n.winbox {\n    border-radius: 10px;\n}\n.winbox.max {\n    border-radius: 0;\n}\n.winbox.max .wb-max {\n    opacity: 0.5;\n}\n```\n\nApply styles when window is NOT in \"maximized\" state:\n```css\n.winbox:not(.max) {\n    \u002F* apply styles *\u002F\n}\n```\n\nApply styles when window is in \"fullscreen\" state:\n```css\n.wb-body:fullscreen {\n    \u002F* apply styles *\u002F\n}\n```\n\nApply styles when window is in \"focus\" state:\n```css\n.winbox {\n    background: #999;\n}\n.winbox.focus {\n    background: #0050ff; \n}\n.winbox .wb-control {\n    display: none;\n}\n.winbox.focus .wb-control {\n    display: block;\n}\n```\n\nApply styles when window is NOT in \"focus\" state (the same logic from example above, but shorter):\n```css\n.winbox:not(.focus) {\n    background: #999;\n}\n.winbox:not(.focus) .wb-control {\n    display: none;\n}\n```\n\nApply styles when window is in \"modal\" state:\n```css\n.winbox.modal .wb-close { display: none }\n```\n\nCustomize the modal background overlay:\n```css\n.winbox.modal:after {\n    background: #0d1117;\n    opacity: 0.5;\n    animation: none;\n}\n```\n\n#### Style Scrollbars\n\n```css\n.wb-body::-webkit-scrollbar {\n    width: 12px;\n}\n.wb-body::-webkit-scrollbar-track {\n    background: transparent;\n}\n.wb-body::-webkit-scrollbar-thumb {\n    border-radius: 10px;\n    background: #263040;\n}\n.wb-body::-webkit-scrollbar-thumb:window-inactive {\n    background: #181f2a;\n}\n.wb-body::-webkit-scrollbar-corner {\n    background: transparent;\n}\n```\n\n## Useful Hints\n\nOften you need to hide specific content parts when it was mounted to a window or hiding when NOT inside a window:\n\nNow you can add the two classes `\"wb-hide\"` and `\"wb-show\"` to any element to control visibility between the two states \"inside\" and \"outside\" a window:\n\n```html\n\u003Cbody>\n    \u003Cmain id=\"content\">\n        \u003Cheader class=\"wb-hide\">Hide this header when in windowed mode\u003C\u002Fheader>\n        \u003Csection>\n            \u003C!-- page contents -->\n        \u003C\u002Fsection>\n        \u003Cfooter class=\"wb-show\">Hide this footer when NOT in windowed mode\u003C\u002Ffooter>\n    \u003C\u002Fmain>\n\u003C\u002Fbody>\n```\n\nThe `display` property when using `\"wb-show\"` might not fit your needs. Please change this css class definition to your desired display-state accordingly.\n\n```js\nnew WinBox({\n    mount: document.getElementById(\"content\")\n});\n```\n\n#### Best Practices\n\n- Use a non-scrolling body element to get the best user experience on mobile devices.\n- Or provide an alternative view strategy for mobile devices, e.g. when the device is a touch device then open a classical app view. If a mouse pointer is available, then mount this view to the WinBox window. Also, you can place a switch button in your application where the user can also toggle between these two modes.\n\n## WinBox on Angular application\n\nStep 1: Install WinBox library\n\n```\nnpm i winbox\n```\n\nStep 2: Install WinBox types\n\n```\nnpm i @types\u002Fwinbox --save-dev\n```\n\nStep 3: Import WinBox in a component\n\n```ts\nimport { Component } from '@angular\u002Fcore';\nimport 'winbox';\ndeclare const WinBox: WinBox.WinBoxConstructor;\n\n@Component({\n  selector: 'my-app',\n  template: '\u003Cbutton (click)=\"openWindow()\">Open Window\u003C\u002Fbutton>'\n})\nexport class AppComponent {\n  openWindow() {\n    WinBox.new();\n  }\n}\n```\n\n## WinBox on Vue application\n\nhttps:\u002F\u002Fgithub.com\u002Fwobsoriano\u002Fvue-winbox\n\nIt uses the native [teleport](https:\u002F\u002Fv3.vuejs.org\u002Fapi\u002Fbuilt-in-components.html#teleport) component in Vue 3 and recommends https:\u002F\u002Fgithub.com\u002FLinusBorg\u002Fvue-simple-portal for Vue 2 users.\n\n\n## WinBox on React application\n\nhttps:\u002F\u002Fgithub.com\u002Frickonono3\u002Freact-winbox\n\nA React controlled component for WinBox.js, with full Reactful props and state. Includes all configurations of WinBox.js by using React component props.\n\n## Custom Builds\n\nGo to the root directory of WinBox and run:\n```cmd\nnpm install\n```\n\nPerform a build:\n```cmd\nnpm run build\n```\n\nThe final build is located in the `dist\u002F` folder.\n\n---\n\nCopyright 2021-2023 Thomas Wilkerling, Hosted by Nextapps GmbH\u003Cbr>\nReleased under the \u003Ca href=\"http:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0.html\" target=\"_blank\">Apache 2.0 License\u003C\u002Fa>\u003Cbr>\n","WinBox 是一个现代的 Web 窗口管理器，基于 HTML5 技术。它具有轻量级、高性能的特点，并且无需依赖任何外部库，完全可自定义。该项目采用 JavaScript 编写，支持创建桌面应用风格的窗口界面，提供丰富的 API 和主题选项，适用于需要在网页上实现类似桌面应用程序用户体验的场景。无论是开发复杂的 web 应用还是简单的弹窗功能，WinBox 都能很好地满足需求。此外，作为开源项目，开发者可以根据具体需求对其进行定制和扩展。","2026-06-11 03:36:40","high_star"]