RinteRface / shinydashboardPlus

extensions for shinydashboard
https://shinydashboardplus.rinterface.com
Other
454 stars 77 forks source link

box() closable visibility = hidden instead of display = none #123

Open nvelden opened 3 years ago

nvelden commented 3 years ago

When closable is set to TRUE the display of the box is set to "none". This causes the box to be invisible and any elements in the box to be out of the DOM. This can be problematic when the box contains inputs which then are automatically set to NULL.

Would it be possible to instead add an option that when closable is set to TRUE visibility is set to "hidden" such that the elements are still accessible in the DOM?

DivadNojnarg commented 3 years ago

This behavior is controlled by AdminLTE JS code (template powering shinydashboard and shinydashboardPlus) and this is not convenient to change: https://github.com/ColorlibHQ/AdminLTE/blob/v2/dist/js/adminlte.js#L270

DivadNojnarg commented 3 years ago

I would encourage you to look at: https://github.com/RinteRface/bs4Dash which is a more modern version for Shiny.