An open API service indexing awesome lists of open source software.

https://github.com/yangyiming/touchmodal

i use the bootstrap modals CSS for modals and we can use this plugin in touch mobile
https://github.com/yangyiming/touchmodal

bootstrap-modal html5-touch-modal modal

Last synced: 3 months ago
JSON representation

i use the bootstrap modals CSS for modals and we can use this plugin in touch mobile

Awesome Lists containing this project

README

          

h1. touch modal

i use the bootstrap modals CSS for modals and we can use this plugin in touch mobile

h2. how to use?

we must to install zepto in the first:


bower install

touch modal depends on Zepto. Include them both in end of your HTML code:



use the bootstrap modals:



html code:




js config:


$("#userFormModal").modals({
//trigger method after open the modals
//element:modal element
//data: you can Pass the dynamic data
callBack:function(element,data){

},
/trigger method before open the modals
before:function(element,data){

},
//"in": it's effect that modal show in page;
//"out": it's effect that modal hide in page;
effect:{
in:"in",
out:"fade"
}
});

if you init this plugin,you can use trigger method for something;


//open the modal
$("#userFormModal").trigger("open",[{}]);
//open the modal
$("#userFormModal").trigger("close",[{}]);

h2. bower install


bower install touch-modals