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
- Host: GitHub
- URL: https://github.com/pherrymason/bootstrap.modal.remote
- Owner: pherrymason
- License: mit
- Created: 2018-08-18T10:07:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-01T23:09:53.000Z (over 1 year ago)
- Last Synced: 2025-06-09T13:52:49.364Z (10 months ago)
- Topics: ajax, bootstrap4, modal
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
}
}
});
```