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.
Problem/Motivation
Some modules for a variety of reasons may need to present off-canvas configuration options in a tray that comes up from the bottom rather than from the right.
Proposed resolution
Add a "bottom tray" option to the off-canvas configuration API.
Remaining tasks
- Write CSS for the bottom tray
- Write js for the bottom tray
User interface changes
A bottom tray will be available for modules to show config options in.
API changes
?
Data model changes
None
Comments
Comment #3
xjmComment #4
xjmComment #5
naveenvalechaComment #6
tedbowComment #7
yoroy CreditAttribution: yoroy at Roy Scholten commentedAdding a bottom tray is a solution, but the problem isn't defined yet. Can we have a bit more detail about this variety of reasons?
Comment #8
tkoleary CreditAttribution: tkoleary at Acquia commentedDoesn't really make sense to do this until the tray is refactored to use backbone.
Comment #9
Bojhan CreditAttribution: Bojhan as a volunteer and commentedNo, purpose before technology. Why should we do this in the first place.
Comment #10
samuel.mortensonI can take a crack at this, as I worked on the Drupal 8 port of Panels IPE, which includes a Backbone-driven bottom tray.
Here's a list of reasons we went with a bottom tray:
Those are the main points I can think of right now.
Comment #11
tkoleary CreditAttribution: tkoleary at Acquia commented@samuel.mortenson
Awesome!
Heads up @tedbow is actively working on #2784935: Use Backbone for client-side state management in this sprint, which might help what you're doing.
Comment #12
samuel.mortenson@tkoleary To be clear I'm not taking a crack at a patch for this - just writing up the list of motivations behind the issue. :-)
That said, once @tedbow gets the Backbone work in I'm happy to come back to this issue and port some of my Panels IPE logic to core.
Comment #13
tkoleary CreditAttribution: tkoleary at Acquia commented@samuel.mortenson
It's all helpful. Thanks!
Comment #14
tkoleary CreditAttribution: tkoleary at Acquia commentedGiven that we are using jquery UI dialogs and not Backbone as we initially thought, which we ultimately want to move away from, I'm marking this postponed until we find a better general purpose solution.
Comment #16
Wim LeersPer #11 and #14, this is postponed on #2784935: Use Backbone for client-side state management.
Comment #17
Wim LeersThis is not a must-have, this is a wishlist item.
Comment #19
tedbowChanging to new settings_tray.module component. @drpal thanks for script help! :)
Comment #21
tedbowClosing because it doesn't seem needed
#2916781: Allow off-canvas dialog to be rendered at the top of the page handles adding another renderer