Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Project information
- Module categories: Developer Tools
- 836 sites report using this module
- Created by vhin0210 on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.