# vue-modal-window

> vue-modal-window ========

Latest version **1.0.3** (published 2019-08-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-modal-window
pnpm add vue-modal-window
yarn add vue-modal-window
bun add vue-modal-window
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2019-08-01 |
| First published | 2019-07-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 73.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Moritanian |
| Maintainers | moritanian |
| Keywords | modal, js, vue |

## Links

- npm: https://www.npmjs.com/package/vue-modal-window
- Repository: https://github.com/moritanian/vue-modal-window
- Issues: https://github.com/moritanian/vue-modal-window/issues
- npm.io page: https://npm.io/package/vue-modal-window

## Dependencies (1)

- [uuid](https://npm.io/package/uuid.md) ^3.3.2

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.3 (latest) — 2019-08-01
- 1.0.2 — 2019-07-27
- 1.0.1 — 2019-07-27
- 1.0.0 — 2019-07-26

## README

vue-modal-window
========

[![npm version](https://badge.fury.io/js/vue-modal-window.svg)](https://badge.fury.io/js/vue-modal-window)

#### OS like modal window component for vuejs ####

<a href="https://moritanian.github.io/vue-modal-window/demo/dist/"><img src="https://moritanian.github.io/vue-modal-window/static/demo.gif"/></a>


<p align="center"><a href="https://moritanian.github.io/vue-modal-window/demo/dist/">DEMO</a></p>

## Props

| Prop    | Type | Default | Usage  |
| ------  | ---- | --- | ------ |
| id   | String | uuid | id attribute of the dom element which is used for identify the modal window.|
| contentUrl | String | '' | Url of iframe of the content. When this property is set, iframe is rendered as the content of the window. |
| visible | Number | 200 | Set true to show the modal window. |
| enableAnotherWindow | Boolean | false | Set true to show real child window (window.open) when maximize button is clicked.  This property is enabled when contentUrl property is set. |
| title | String | '' | Title text of the modal window. |
| width | String | 300 | Initial width of the modal window. |
| height | String | 300 | Initial height of the modal window. |
| top | String | 300 | Initial top of the modal window. |
| left | String | 300 | Initial left of the modal window. |
| minWidth | String | 60 | Minimum width of the modal window. |
| minHeight | String | 20 | Minimum height of the modal window. |
| resizable | Boolean | true | Set true to enable resizing. |
| draggable | Boolean | true | Set true to enable dragging. |
| recordRect | Boolean | true | Set true to record the rect of the window and load it. |
| recordVisibility | Boolean | true | Set true to record the visibility of the window and load it. |


## Usage
```demo.vue
<template>
  <vue-modal-window :visible.sync="visibleDemo1">This is content</vue-modal-window>
</template>
<script>
import VueModalWindow  from 'vue-modal-window';
export default {
  components: {VueModalWindow}
};
</script>
```

---
_Source: https://npm.io/package/vue-modal-window · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
