All Components

Window Overview

The Window displays content in a modal or non-modal HTML window and, by default, can be moved, resized, and closed.

The Window wrapper for Vue is a client-side wrapper for the Kendo UI Window widget.

Installation

To initialize the Window, either:

Initializing from CDN

The following example demonstrates how to initialize the Window component by using the CDN services. To access all CDN references, open the sample in Plunker.

<div id="vueapp" class="vue-app">
    <kendo-window :width="'300px'"
                  :title="'Window title'"
                  :visible="visible"
                  style="display:none">
        <h4>Window content</h4>
    </kendo-window>
</div>
Vue.use(WindowInstaller);

new Vue({
    el: '#vueapp',
    data () {
        return {
            visible: true
        }
    }
})

Initializing with Webpack

  1. Install Kendo UI and add a theme.

    <pre><code class="language-sh">npm install --save @progress/kendo-ui
    npm install --save @progress/kendo-theme-default</code></pre>
    
  2. Install the Kendo UI Window package for Vue.

    <pre><code class="language-sh">npm install --save @progress/kendo-window-vue-wrapper</code></pre>
    
  3. Import the Kendo UI packages to the App component. If you use the Kendo UI components more than once in your application, add all Kendo UI-related files to the main.js file. If you use the Kendo UI components once in your application, add the Kendo UI-related files the component where they will be referred.

    <pre><code class="language-js-no-run">import &#39;@progress/kendo-ui&#39;
    import &#39;@progress/kendo-theme-default/dist/all.css&#39;
    
    import { Window } from &#39;@progress/kendo-window-vue-wrapper&#39;
    import { WindowInstaller } from &#39;@progress/kendo-window-vue-wrapper&#39;
    
    Vue.use(WindowInstaller)
    
    new Vue({
        el: &#39;#app&#39;,
        components: {
            Window
        }
    })</code></pre>
    

Features and Functionalities

Events

The following example demonstrates basic Window events. You can subscribe to all Window events by the handler name.

<div id="vueapp" class="vue-app">
    <kendo-window :title="'Window title'" v-on:open="onOpen">Content</kendo-window>
</div>
Vue.use(WindowInstaller);

new Vue({
    el: '#vueapp',
    methods: {
        onOpen (e) {
            console.log('Window is about to be opened.');
        }
    }
})
In this article