1.0.4 • Published 3 years ago
login-popup v1.0.4
login popup
how to use
var options = {
title: 'xxx',
content: [
{ type: 'input', placeholder: 'xxx', name: 'xxx', regular: '', errorInfo: 'xxx'},
{ type: 'input', placeholder: 'xx', name: 'xx', regular: '', errorInfo: 'xxx' },
{ type: 'button', name: 'submit', text: 'xx' }
],
footer: [
{ text: 'XX', position: 'center', type: 'light-green', url: 'xxx'},
{ text: 'XX', position: 'right', type: 'dim-gray', url: 'XXX'}
],
onOpen: function() {
//alert('modal open');
},
onClose: function() {
//alert('modal onClose');
},
}
var popup = new LoginPopup.LoginPopup(options)
popup.open();
expand
url