Giter Club home page Giter Club logo

digbox's Introduction

digBox

一个弹框示例

描述

底部弹框

使用
    var closedBtn = $(".closedBtn")
    
    $(".btn").digMax({
        dShow: true,
        blur: true,
        title: '自定义的标题',
        content: '自定义的内容',
        btnTxt: '这是按钮1',
        btnNew: '点我点我',
        onClick: function(){
            alert('你点我了!');
        },
        onClosed: function(el,ops,closed){
            closedBtn.on("click",function(){
                closed(el,ops)    // 强行写死了的关闭窗口函数 = =!
            })
        }
    });
参数
参数 说明
title string 设置弹框title
content string/code 添加弹框内容
dShow false/true 设置弹框初始化关/开(或者在按钮上设置属性d-show)
blur false/true 背景是否羽化
btnTxt string 按钮文字
btnNew string 点击后设置【新按钮】文字
onClick function 重新设置后【新按钮】点击事件
onClosed function 关闭窗口事件

digbox's People

Contributors

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