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

https://github.com/pherrymason/bootstrap.modal.remote

Bootstrap 4 Modal extended with ajax capabilities
https://github.com/pherrymason/bootstrap.modal.remote

ajax bootstrap4 modal

Last synced: 9 months ago
JSON representation

Bootstrap 4 Modal extended with ajax capabilities

Awesome Lists containing this project

README

          

# bootstrap.modal.remote
Bootstrap 4 Modal extended with ajax capabilities

Extend [bootstrap 4-modal](https://getbootstrap.com/docs/4.1/components/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
}
}
});
```