Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291711

Introduce Drupal.offCanvas, mirrored after Drupal.dialog, to avoid Settings Tray using Drupal.Dialog in unintended ways

$
0
0

Problem/Motivation

Currently all functions within off-canvas.es6.js are private scoped. Some themes, like Bootstrap, already have their own modal JavaScript which do not rely on jQuery UI. Due to the private scope design custom projects do not have the ability to override its default behavior.

Proposed resolution

Rewrite off-canvas.es6.js to follow a "module pattern", exposing functions publicly, allowing other JavaScript libraries to modify or replace functionality.

API changes

- Exposed previously private methods to public. @see patch Drupal.offCanvas


Viewing all articles
Browse latest Browse all 291711

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>