Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Dialog Native

Security covered Under active development

This module provides a modern replacement for Drupal's dialog system, utilizing the native HTML5 dialog element to eliminate jQuery UI dependencies. It includes an adapter to ensure compatibility with existing dialog calls, with the goal of eventually integrating into Drupal core.

Provides a new "dialogNative" JavaScript library as replacement for the original jQuery UI based dialog.js in Drupal core.
The dialogNative library uses the native HTML5 <dialog> element and thereby removes the jQuery UI Dialog dependencies ๐ŸŽ‰

The module implements a dialogAdapter library, which should bridge all existing Drupal.dialog() calls to use the new dialogNative library until all use's of Drupal.dialog() are replaced by Drupal.dalogNative() in Drupal Core and Contrib modules.

In the future, large parts will hopefully be make it into Drupal Core: #2158943: Add a native dialog element using HTMX to deprecate the jQuery UI dialog.

This module is heavy WIP and not ready for production! Please help us to push things forward and get rid of jQuery UI Dialog in Core! ๐Ÿ’ช

Plan / further steps

  1. Review and polish the module implementations
  2. Move dialogNative library into Drupal Core (#2158943: Add a native dialog element using HTMX to deprecate the jQuery UI dialog)
  3. Eventually move dialogAdapter library into Drupal Core to replace old core/drupal.dialog library (Drupal.dialog())
  4. Deprecate core/drupal.dialog
  5. Replace core/drupal.dialog implementations with core/drupal.dialogNative
  6. Remove core/drupal.dialog with its jQuery UI dependencies

Please help us making progress! ๐Ÿš€

Why?

  1. Get rid of jQuery UI
  2. Instead, use the native <dialog> Element
  3. Drupal Dialog / Modal API and Drupal AJAX Dialog Boxes are still super cool features!

Supporting this module

Support DROWL's โ™ฅ FOSS work on this module on OpenCollective!

Drupal and this module are FOSS. However, it takes dedicated people to develop and maintain. And they need YOU to give back!

We're committed to building and maintaining Drupal modules that benefit the entire community.

Supporting us on OpenCollective helps us continue to improve, innovate and contribute to Drupal's future. Every pledge makes a difference!

If this module has helped you, we would be very grateful for your donation to support its further development and maintenance.

Support our FOSS development โ™ฅ๏ธ

You can also speed up the development of features or bugfixes you'd love to see, by sponsoring and giving back!

Sponsor a feature or bugfix ๐Ÿš€

Let's make Drupal even better, together!

Ask your assistant about Dialog Native

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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.

Activity

Tracked releases
3
Tracked since
Jan 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-alpha1 Pre-release 10 Jan 19, 2024
1.0.x-dev Dev Jan 17, 2024
1.x-dev Dev 10โ€“11 Jan 17, 2024