Skip to content

sevenD0528/z-dialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

z-dialog

A Zepto Plugin

During the development of a H5 activity for the company, I found out that we always built the dialog by ourselves everytime, such as the css, the callback function etc. So I think it's necessary to build a unity plugin for the best benifits and conveniency of the development.

The plugin is written built on the great Zepto.js and flexble.js which is a common lib used for our mobile development solution. It can be used as below, which u can also find out in the demo index.html:

    $.dialog({
        content : 'Content',
        title : 'ok',
        width : '5rem',
        height : '4rem',
        confirm : function() {
            alert('Confirmed');
            return true;
        },
        confirmText: 'Confirm'
    });

If u set up the title, it will look like as below:

img

If u don't set up the title, it will look like as below:

img

Thanks.

About

A confirm dialog plugin built with zepto

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published