bootstrap-modal-remote
v1.0.4
Published
Bootstrap 4 Modal extended with ajax capabilities
Downloads
15
Readme
bootstrap.modal.remote
Bootstrap 4 Modal extended with ajax capabilities
Extend bootstrap 4-modal library with remote content capabilities.
Install
npm install bootstrap-modal-remote
Usage
var $modal = $('#my-modal');
$modal.modalRemote({
url: 'http://my-endpoint',
endpointDataType: 'json',
params: {query01: 'value', query02: 'value2'},
// Optional
callbacks: {
onContentLoaded: function (json) {
// Custom modal content injection
}
}
});