Bootstrap 4 Modal
This module provides Bootstrap modal dialogs for Drupal. It is compatible with Bootstrap 4 and 5 themes and integrates with Drupal's AJAX functionality to display content in a modal window.
This module provides a bootstrap modal.
Compatible with bootstrap 4 and bootstrap 5 themes.
Installation
By composer (Recommended):
composer require drupal/bootstrap4_modal
Usage
<a href="[some-links]" class="use-ajax" data-dialog-type="bootstrap4_modal" data-dialog-options="{"dialogClasses":"modal-dialog-centered","dialogShowHeader":false}">Open in Bootstrap Modal</a>
Available Dialog Options
$defaultOptions = [
autoOpen: true,
dialogClasses: '',
dialogShowHeader: true,
dialogShowHeaderTitle: true,
buttonClass: 'btn',
buttonPrimaryClass: 'btn-primary'
];Provides Bootstrap Modal Display for Entity Browser
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.