Giter Site home page Giter Site logo

vue-modal-window's Introduction

vue-modal-window

npm version

OS like modal window component for vuejs

DEMO

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

<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>

vue-modal-window's People

Contributors

getraid avatar moritanian avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.