Coder Social home page Coder Social logo

js-xwindow's Introduction

js-xWindow

依赖

js-xWindow依赖于:

  • jQuery 3.x
  • jQuery-UI 1.12.x

使用方法

Example:

<script>
    var win = new xWindow({
        iconPath: Mock.Random.dataImage("32x32", "SB"),        // 设置窗口图标的路径
        titleText:"我是一个窗口对象",                           // 设置窗口的标题 
        closeButtonImage: Mock.Random.dataImage("24x24", "X"), // 设置窗口关闭按钮的背景图片
        winMinWidth: 200,                                      // 窗口的最小绘制宽度
        winMinHeight: 200,                                     // 窗口的最小绘制高度
        winWidth: 320,                                         // 窗口绘制的宽度
        winHeight: 480,                                        // 窗口绘制的高度
        titleBarHeight: 40,                                    // 设置标题栏的高度,否则默认18像素的高度
        dontClose: false,                                      // true: 隐藏窗口, false: 销毁窗口 
    });
</script>

js-xwindow's People

Contributors

gemark avatar

Stargazers

 avatar

Watchers

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