GithubHelp home page GithubHelp logo

artdialog.extend's Introduction

artDialog.extend

artDialog网页对话框组件功能扩展

1.常用功能封装

2.图片旋转阅览


DEMO

暂无

Getting Started

在使用前,你需要引入jQuery和artDialog
<!-- dialog的样式文件 -->
<link rel="stylesheet" href="lib/ui-dialog.css">

<!-- jQuery -->
<script src="lib/jquery-1.11.1.min.js"></script>

<!-- artDialog网页对话框组件 -->
<script src="lib/dialog-min.js"></script>

<!-- artDialog.extend -->
<script src="dialog.extend.js"></script>

API

消息提示

dialog.msg( content, time )

/**
 * [弹窗消息提示,带显示时间]
 * @param  {[String]}   content [消息内容]
 * @param  {[number]}   time    [持续时间]
 */

气泡提示

dialog.tipmsg( content, element, time )

/**
 * [气泡提示,带显示时间]
 * @param  {[String]}               content [消息内容]
 * @param  {[String or element]}    element [DOM元素或ID]
 * @param  {[number]}               time    [持续时间]
 */

确认对话框

dialog.recheck( okfn, nofn, mask )

/**
 * [确认对话框]
 * @param  {[fn]}       okfn [传入确认后执行的函数]
 * @param  {[fn]}       nofn [传入取消后执行的函数]
 * @param  {[blooean]}  mask [是否以蒙层方式打开]
 */

带旋转功能的图片阅览

dialog.img( options )

/**
 * [弹出阅览大图]
 * @param  {[object]}   options [配置参数]
 */

// 默认参数
var defaults = {
    'img':    false,    //传入图片-必须,可以是jQuery对象
    'rotate': false,    //阅览的大图是否可旋转
    'width':  false,    //定义阅览图的宽
    'height': false,     //定义阅览图的高
    'maxWidth':false,
    'maxHeight':false,
    'quickClose':false,
    'clone':true //默认以克隆方式阅览大图
};

Let's work together

http://moerj.com

artdialog.extend's People

Contributors

moerj avatar

Watchers

 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.